diff options
author | Lukasz Czerwinski <l.czerwinski@samsung.com> | 2013-09-18 05:21:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-18 14:50:10 -0400 |
commit | 2b0774df40d7ceed9bda3423d436d9fea30fb281 (patch) | |
tree | baa389bcb2e29a552c2b8c17bd39f870d0c88540 /drivers/iio/industrialio-event.c | |
parent | 40e23ced937aab63b6191ce0e8083bfe09847423 (diff) |
iio: iio_device_add_event_sysfs() bugfix
Fix mask generation for modified channels.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-event.c')
-rw-r--r-- | drivers/iio/industrialio-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c index 10aa9ef86cec..f146acd12737 100644 --- a/drivers/iio/industrialio-event.c +++ b/drivers/iio/industrialio-event.c | |||
@@ -276,7 +276,7 @@ static int iio_device_add_event_sysfs(struct iio_dev *indio_dev, | |||
276 | goto error_ret; | 276 | goto error_ret; |
277 | } | 277 | } |
278 | if (chan->modified) | 278 | if (chan->modified) |
279 | mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel, | 279 | mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel2, |
280 | i/IIO_EV_DIR_MAX, | 280 | i/IIO_EV_DIR_MAX, |
281 | i%IIO_EV_DIR_MAX); | 281 | i%IIO_EV_DIR_MAX); |
282 | else if (chan->differential) | 282 | else if (chan->differential) |