projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e23ce
)
iio: iio_device_add_event_sysfs() bugfix
author
Lukasz Czerwinski
<l.czerwinski@samsung.com>
Wed, 18 Sep 2013 09:21:00 +0000
(10:21 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Wed, 18 Sep 2013 18:50:10 +0000
(19:50 +0100)
Fix mask generation for modified channels.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-event.c
patch
|
blob
|
history
diff --git
a/drivers/iio/industrialio-event.c
b/drivers/iio/industrialio-event.c
index 10aa9ef86cece1b80fa09c57d2a52e344e4dfc12..f146acd1273775b75efb993b77a5e5ed6446b533 100644
(file)
--- 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,
goto error_ret;
}
if (chan->modified)
- mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel,
+ mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel
2
,
i/IIO_EV_DIR_MAX,
i%IIO_EV_DIR_MAX);
else if (chan->differential)