misc: apds990x, bh1770glc, lis3lv02d: use to_i2c_client
authorGeliang Tang <geliangtang@163.com>
Mon, 28 Dec 2015 15:00:16 +0000 (23:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 07:01:45 +0000 (23:01 -0800)
commit8c99d8e6de0474bf5a7004e41c044ac4dcacbae1
tree63873c53965a2c89e325277839fbcb95bc4c0ced
parent50e6315dba721cbc24ccd6d7b299f1782f210a98
misc: apds990x, bh1770glc, lis3lv02d: use to_i2c_client

Use to_i2c_client() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/apds990x.c
drivers/misc/bh1770glc.c
drivers/misc/lis3lv02d/lis3lv02d_i2c.c