Skip to content

Commit c3518a4

Browse files
author
Wolfram Sang
committed
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 <[email protected]> Acked-by: Shawn Guo <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent df40f24 commit c3518a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-zx2967.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
#define I2C_TIMEOUT msecs_to_jiffies(1000)
5555

56-
#define DEV(i2c) (&i2c->adap.dev)
56+
#define DEV(i2c) ((i2c)->adap.dev.parent)
5757

5858
struct zx2967_i2c {
5959
struct i2c_adapter adap;

0 commit comments

Comments
 (0)