[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120110074520.GA19930@core.coreip.homeip.net>
Date: Mon, 9 Jan 2012 23:45:20 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Milton Miller <miltonm@....com>
Cc: Che-Liang Chiou <clchiou@...omium.org>,
linux-kernel@...r.kernel.org
Subject: Re: your mail
On Mon, Jan 09, 2012 at 10:17:35PM -0800, Milton Miller wrote:
> Subject Re: [PATCH 1/2] Input: serio_raw - cosmetic fixes
> In-Reply-To: <20120109082412.GC4049@...e.coreip.homeip.net>
> References: <20120109082412.GC4049@...e.coreip.homeip.net>
> <1325847795-30486-1-git-send-email-clchiou@...omium.org>
> Date: Tue, 10 Jan 2012 00:14:35 -0600
> Subject: (No subject header)
> X-Originating-IP: 71.22.127.106
> Message-ID: <1326176075_1502@...l4.comsite.net>
>
> On Mon, 9 Jan 2012 about 00:24:12 -0800, Dmitry Torokhov wrote:
> > > struct serio_raw_client *client = file->private_data;
> > > struct serio_raw *serio_raw = client->serio_raw;
> > > - unsigned int mask;
> > >
> > > poll_wait(file, &serio_raw->wait, wait);
> > >
> > > - mask = serio_raw->dead ? POLLHUP | POLLERR : POLLOUT | POLLWRNORM;
> > > if (serio_raw->head != serio_raw->tail)
> > > return POLLIN | POLLRDNORM;
> > >
> >
> > This however is not quite correct. I will be applying the patch below
> > instead.
> >
> >
> > diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c
> > index ca78a89..c2c6ad8 100644
> > --- a/drivers/input/serio/serio_raw.c
> > +++ b/drivers/input/serio/serio_raw.c
> > @@ -237,7 +237,7 @@ static unsigned int serio_raw_poll(struct file *file, poll_table *wait)
> >
> > mask = serio_raw->dead ? POLLHUP | POLLERR : POLLOUT | POLLWRNORM;
> > if (serio_raw->head != serio_raw->tail)
> > - return POLLIN | POLLRDNORM;
> > + mask |= POLLIN | POLLRDNORM;
> >
> > return 0;
>
> doesn't this need to be changed to return mask?
Doh! Of course it does.
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists