summaryrefslogtreecommitdiff
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2019-09-17 16:56:37 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-10-09 19:11:28 +0100
commit7fd1c2606508eb384992251e87d50591393a48d0 (patch)
tree1d76133b1d7bb7f02234f1fb3481fece6f059e1e /drivers/iio/light
parent1436a78c63495dd94c8d4f84a76d78d5317d481b (diff)
iio: light: add missing vcnl4040 of_compatible
Commit 5a441aade5b3 ("iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor") added the support for the vcnl4040 but forgot to add the of_compatible. Fix this by adding it now. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Fixes: 5a441aade5b3 ("iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor") Reviewed-by: Angus Ainslie (Purism) angus@akkea.ca Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r--drivers/iio/light/vcnl4000.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c
index f522cb863e8c..16dacea9eadf 100644
--- a/drivers/iio/light/vcnl4000.c
+++ b/drivers/iio/light/vcnl4000.c
@@ -409,6 +409,10 @@ static const struct of_device_id vcnl_4000_of_match[] = {
.data = (void *)VCNL4010,
},
{
+ .compatible = "vishay,vcnl4040",
+ .data = (void *)VCNL4040,
+ },
+ {
.compatible = "vishay,vcnl4200",
.data = (void *)VCNL4200,
},