iio: tsl2772: add support for avago,apds9930
authorBrian Masney <masneyb@onstation.org>
Fri, 3 Aug 2018 00:18:58 +0000 (20:18 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Aug 2018 17:11:47 +0000 (18:11 +0100)
commit75de3b570b1c80f185df5289cb781e453fd64502
treed53795dccee8ca789b18e7cf795a2dfa8420bb3f
parent28b6977e089dda97f8f32ac1a6a223f59e7065f4
iio: tsl2772: add support for avago,apds9930

The Avago APDS9930 has the same register set as the TAOS/AMS TSL2772 so
this patch adds the correct bindings and the appropriate LUX table
values derived from the values in the datasheet. Driver was tested on a
LG Nexus 5 (hammerhead) phone.

avago,apds9930 datasheet:
https://www.mouser.com/datasheet/2/678/avago_AV02-3190EN_DS_APDS-9930_2014-03-25[1]-1217273.pdf

tsl2772 datasheet:
https://ams.com/eng/content/download/291503/1066377/file/TSL2772_DS000181_2-00.pdf

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2772.c