* [PATCH] iio: iio_device_add_event_sysfs() bugfix
@ 2013-09-18 9:21 Lukasz Czerwinski
2013-09-18 18:51 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Czerwinski @ 2013-09-18 9:21 UTC (permalink / raw)
To: jic23; +Cc: linux-iio
Fix mask generation for modified channels.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
---
drivers/iio/industrialio-event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
index 10aa9ef..f146acd 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,
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->channel2,
i/IIO_EV_DIR_MAX,
i%IIO_EV_DIR_MAX);
else if (chan->differential)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: iio_device_add_event_sysfs() bugfix
2013-09-18 9:21 [PATCH] iio: iio_device_add_event_sysfs() bugfix Lukasz Czerwinski
@ 2013-09-18 18:51 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-09-18 18:51 UTC (permalink / raw)
To: Lukasz Czerwinski; +Cc: linux-iio
On 09/18/13 10:21, Lukasz Czerwinski wrote:
> Fix mask generation for modified channels.
>
> Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Applied to the fixes-togreg branch of iio.git.
Thanks for doing this!
Jonathan
> ---
> drivers/iio/industrialio-event.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
> index 10aa9ef..f146acd 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,
> 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->channel2,
> i/IIO_EV_DIR_MAX,
> i%IIO_EV_DIR_MAX);
> else if (chan->differential)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-18 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 9:21 [PATCH] iio: iio_device_add_event_sysfs() bugfix Lukasz Czerwinski
2013-09-18 18:51 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).