iio: tsl2772: add support for reading proximity led settings from device tree
authorBrian Masney <masneyb@onstation.org>
Fri, 3 Aug 2018 00:18:54 +0000 (20:18 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Aug 2018 17:11:47 +0000 (18:11 +0100)
commit94cd1113aaa07762c57032e2e6212531f5308893
treea48ef40e01bf943842c10c607c6f419228e54656
parent1ed80a817bc42de91701cc60e58d968077359a58
iio: tsl2772: add support for reading proximity led settings from device tree

This patch adds support for optionally reading the proximity led diode
and current settings from device tree. This was tested using a LG
Nexus 5 (hammerhead) which requires a different diode than the driver
default for the IR LED.

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