i2c: Update i2c_trace_msg static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 26 Mar 2018 21:09:24 +0000 (14:09 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Apr 2018 17:20:26 +0000 (19:20 +0200)
commit50888b015d1318a5d76c961f80bab79249cb1000
tree60f01ea5e5338572868357b7bacc861509e632a7
parent4a3f7691e2f722421b231d3f3fa05b0a6670a20a
i2c: Update i2c_trace_msg static key to modern api

No changes in refcount semantics -- key init is false; replace

static_key_slow_inc|dec   with   static_branch_inc|dec
static_key_false          with   static_branch_unlikely

Added a '_key' suffix to i2c_trace_msg, for better self
documentation.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c