diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-06-23 21:05:30 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-06-27 23:21:00 +0200 |
commit | c3518a4ed8753a88b0dee614a64ffadd5f67386b (patch) | |
tree | 3b731df509072d3da71c198c69228fb218699322 /drivers/i2c/busses | |
parent | i2c: pca-platform: use dev_warn/dev_info instead of printk (diff) | |
download | linux-c3518a4ed8753a88b0dee614a64ffadd5f67386b.tar.xz linux-c3518a4ed8753a88b0dee614a64ffadd5f67386b.zip |
i2c: zx2967: always use the same device when printing errors
Let's always use the platform device for dev_* and not sometimes the
adapter device as well. Also fix this checkpatch check:
CHECK: Macro argument 'i2c' may be better as '(i2c)' to avoid precedence issues
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-zx2967.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-zx2967.c b/drivers/i2c/busses/i2c-zx2967.c index 3e381edc0f22..48281c1b30c6 100644 --- a/drivers/i2c/busses/i2c-zx2967.c +++ b/drivers/i2c/busses/i2c-zx2967.c @@ -53,7 +53,7 @@ #define I2C_TIMEOUT msecs_to_jiffies(1000) -#define DEV(i2c) (&i2c->adap.dev) +#define DEV(i2c) ((i2c)->adap.dev.parent) struct zx2967_i2c { struct i2c_adapter adap; |