提交 c3518a4e 编写于 作者: W Wolfram Sang

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: NWolfram Sang <wsa@the-dreams.de>
Acked-by: NShawn Guo <shawnguo@kernel.org>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 df40f247
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册