]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: veml6035: fix read_avail in no_irq case for veml6035
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 7 Oct 2024 20:36:36 +0000 (22:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2024 17:59:50 +0000 (18:59 +0100)
commitace858339577c6b63196b875bbbb1cf5bc4347cd
treeecf3041b0914308a53327d57e7d40a8297c9f685
parent1a811e1be7954eb499a72cc12275d3a6aa8b179d
iio: light: veml6035: fix read_avail in no_irq case for veml6035

The iio_info is identical for veml6030 and veml6035. Moreover,
veml6035_info_no_irq is missing the initialization of the read_avail
member, which is actually a bug if no irq is provided.

Instead of adding the missing initialization, remove the device-specific
iio_info and use the existing one for the veml6030.

Fixes: ccc26bd7d7d7 ("iio: light: veml6030: add support for veml6035")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241007-veml7700-v1-1-fb85dd839d63@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6030.c