From: Jonathan Cameron <jic23@kernel.org>
To: Lukasz Czerwinski <l.czerwinski@samsung.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: iio_device_add_event_sysfs() bugfix
Date: Wed, 18 Sep 2013 19:51:26 +0100 [thread overview]
Message-ID: <5239F62E.2070104@kernel.org> (raw)
In-Reply-To: <1379496100-27649-1-git-send-email-l.czerwinski@samsung.com>
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)
>
prev parent reply other threads:[~2013-09-18 17:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 9:21 [PATCH] iio: iio_device_add_event_sysfs() bugfix Lukasz Czerwinski
2013-09-18 18:51 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5239F62E.2070104@kernel.org \
--to=jic23@kernel.org \
--cc=l.czerwinski@samsung.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).