diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2026-05-14 14:01:11 +1300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-16 19:25:33 +0100 |
| commit | c52bb33b641ebaae3e209f97714cb1758206f7d9 (patch) | |
| tree | b5d76cddb9ed59f5fa5d7cbd0554c734720361ca | |
| parent | ff29241030eb6f4505d903d87c29f51c1866a95d (diff) | |
| download | linux-next-c52bb33b641ebaae3e209f97714cb1758206f7d9.tar.gz linux-next-c52bb33b641ebaae3e209f97714cb1758206f7d9.zip | |
iio: light: veml6030: fix channel type when pushing events
The events are registered for IIO_LIGHT and not for IIO_INTENSITY.
Use the correct channel type.
When at it, fix minor checkpatch code style warning (alignment).
Cc: stable@vger.kernel.org
Fixes: 7b779f573c48 ("iio: light: add driver for veml6030 ambient light sensor")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
| -rw-r--r-- | drivers/iio/light/veml6030.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/iio/light/veml6030.c b/drivers/iio/light/veml6030.c index 6bcacae3863c..da8c32cabfd6 100644 --- a/drivers/iio/light/veml6030.c +++ b/drivers/iio/light/veml6030.c @@ -875,9 +875,11 @@ static irqreturn_t veml6030_event_handler(int irq, void *private) else evtdir = IIO_EV_DIR_FALLING; - iio_push_event(indio_dev, IIO_UNMOD_EVENT_CODE(IIO_INTENSITY, - 0, IIO_EV_TYPE_THRESH, evtdir), - iio_get_time_ns(indio_dev)); + iio_push_event(indio_dev, IIO_UNMOD_EVENT_CODE(IIO_LIGHT, + 0, + IIO_EV_TYPE_THRESH, + evtdir), + iio_get_time_ns(indio_dev)); return IRQ_HANDLED; } |
