Skip to content
Commit 1436a78c authored by Marco Felsch's avatar Marco Felsch Committed by Jonathan Cameron
Browse files

iio: light: fix vcnl4000 devicetree hooks



Since commit ebd457d5 ("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: ebd457d5 ("iio: light: vcnl4000 add devicetree hooks")
Signed-off-by: default avatarMarco Felsch <m.felsch@pengutronix.de>
Reviewed-by: default avatarAngus Ainslie (Purism) <angus@akkea.ca>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent fdb828e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment