Home
last modified time | relevance | path

Searched hist:"1436 a78c63495dd94c8d4f84a76d78d5317d481b" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/light/
H A Dvcnl4000.cdiff 1436a78c63495dd94c8d4f84a76d78d5317d481b Tue Sep 17 16:56:36 CEST 2019 Marco Felsch <m.felsch@pengutronix.de> iio: light: fix vcnl4000 devicetree hooks

Since commit ebd457d55911 ("iio: light: vcnl4000 add devicetree hooks")
the of_match_table is supported but the data shouldn't be a string.
Instead it shall be one of 'enum vcnl4000_device_ids'. Also the matching
logic for the vcnl4020 was wrong. Since the data retrieve mechanism is
still based on the i2c_device_id no failures did appeared till now.

Fixes: ebd457d55911 ("iio: light: vcnl4000 add devicetree hooks")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Angus Ainslie (Purism) angus@akkea.ca
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>