i2c: use kobj_to_dev() API
authorchenqiwu <chenqiwu@xiaomi.com>
Fri, 14 Feb 2020 12:56:37 +0000 (20:56 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 10 Mar 2020 09:50:08 +0000 (10:50 +0100)
commit6b060d8a09e9ab03748d1134c34275714a3c0217
treea255085348c32904546c8de37265c012f9b73337
parenta786b80c48c2d135a2387b870b19ab503701c314
i2c: use kobj_to_dev() API

Use kobj_to_dev() API instead of container_of().

Signed-off-by: chenqiwu <chenqiwu@xiaomi.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c