]> git.baikalelectronics.ru Git - kernel.git/commit
iio: vcnl4000: make the driver extendable
authorTomas Novotny <tomas@novotny.cz>
Wed, 25 Jul 2018 15:18:18 +0000 (17:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Jul 2018 07:58:33 +0000 (08:58 +0100)
commitf388081fbdee7daffa9c8c5a2c25c1152e137998
treef2b21173d33d72ea28720f60f68b142885883f7b
parentf4f16cc2dc074c16e37543e5a6e0c69babb08f6d
iio: vcnl4000: make the driver extendable

There are similar chips in the vcnl4xxx family. The initialization and
communication is a bit different for members of the family, so this
patch makes the driver extendable for different chips.

There is no functional change.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c