From: Jonathan Cameron <jic23@kernel.org>
To: Cristina Opriceana <cristina.opriceana@gmail.com>
Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
daniel.baluta@intel.com
Subject: Re: [PATCH] iio: event: Remove negative error code from iio_event_poll
Date: Sat, 8 Aug 2015 17:20:38 +0100 [thread overview]
Message-ID: <55C62C56.2030406@kernel.org> (raw)
In-Reply-To: <3a7c7c8ea195b6bb8b6972a22a487d870b2faec0.1438595639.git.cristina.opriceana@gmail.com>
On 03/08/15 11:00, Cristina Opriceana wrote:
> Negative return values are not supported by iio_event_poll since
> its return type is unsigned int.
>
> Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
As with the other one, the docs aren't yet there in the fixes tree where
I have applied this (by hand). I've also added the fixes line and
marked it for stable.
Could you resend the docs updates after that patch has worked it's
way through to the togreg branch of iio.git
(I'll try and remember this as well!)
Thanks,
Jonathan
> ---
> drivers/iio/industrialio-event.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
> index b2f63f9..eb44dab 100644
> --- a/drivers/iio/industrialio-event.c
> +++ b/drivers/iio/industrialio-event.c
> @@ -80,7 +80,7 @@ EXPORT_SYMBOL(iio_push_event);
> * @wait: Poll table pointer to add the wait queue on
> *
> * Return: (POLLIN | POLLRDNORM) if data is available for reading
> - * or a negative error code on failure
> + * or 0 on failure
> */
> static unsigned int iio_event_poll(struct file *filep,
> struct poll_table_struct *wait)
> @@ -90,7 +90,7 @@ static unsigned int iio_event_poll(struct file *filep,
> unsigned int events = 0;
>
> if (!indio_dev->info)
> - return -ENODEV;
> + return events;
>
> poll_wait(filep, &ev_int->wait, wait);
>
>
prev parent reply other threads:[~2015-08-08 16:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 10:00 [PATCH] iio: event: Remove negative error code from iio_event_poll Cristina Opriceana
2015-08-08 16:20 ` 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=55C62C56.2030406@kernel.org \
--to=jic23@kernel.org \
--cc=cristina.opriceana@gmail.com \
--cc=daniel.baluta@intel.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/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).