i2c: Switch to using the new API kobj_to_dev()

Switch to using the new API kobj_to_dev().

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
Tian Tao 2020-09-15 09:38:18 +08:00 • committed by Wolfram Sang
commit b1d4dc15b2