i2c: zx2967: always use the same device when printing errors
authorWolfram Sang <wsa@the-dreams.de>
Fri, 23 Jun 2017 19:05:30 +0000 (21:05 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Jun 2017 21:21:00 +0000 (23:21 +0200)
commitc3518a4ed8753a88b0dee614a64ffadd5f67386b
tree3b731df509072d3da71c198c69228fb218699322
parentdf40f247750cc6427216b3be2c0eebfd51a5c155
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>
drivers/i2c/busses/i2c-zx2967.c