iio: light: add missing vcnl4040 of_compatible
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 17 Sep 2019 14:56:37 +0000 (16:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:28 +0000 (19:11 +0100)
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>
drivers/iio/light/vcnl4000.c

index f522cb863e8c82e1b0227525ef26fb8d9f883756..16dacea9eadfa540afd57c7889339fc03384f639 100644 (file)
@@ -408,6 +408,10 @@ static const struct of_device_id vcnl_4000_of_match[] = {
                .compatible = "vishay,vcnl4020",
                .data = (void *)VCNL4010,
        },
+       {
+               .compatible = "vishay,vcnl4040",
+               .data = (void *)VCNL4040,
+       },
        {
                .compatible = "vishay,vcnl4200",
                .data = (void *)VCNL4200,