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)
commit1ebc787ae5181c98060f25157b490cdad92728a7
treef2b21173d33d72ea28720f60f68b142885883f7b
parentcebc4585f6ac01c3ea8fa8a8dd22848747f24d05
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