[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CC4407E.6060705@tremplin-utc.net>
Date: Sun, 24 Oct 2010 16:19:42 +0200
From: Éric Piel <eric.piel@...mplin-utc.net>
To: Samu Onkalo <samu.p.onkalo@...ia.com>
CC: khali@...ux-fr.org, guenter.roeck@...csson.com, jic23@....ac.uk,
lm-sensors@...sensors.org, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 04/12] hwmon: lis3: Update coordinates at polled device
open
Op 22-10-10 13:57, Samu Onkalo schreef:
> Call input device poll function at device open to refresh coordinates
> immediately. This is needed for the case where poll interval is set to
> zero and coordinate updates happens purely under interrupt control.
>
> Signed-off-by: Samu Onkalo<samu.p.onkalo@...ia.com>
Acked-by: Eric Piel <eric.piel@...mplin-utc.net>
> ---
> drivers/hwmon/lis3lv02d.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c
> index fe97390..e2e0bb4 100644
> --- a/drivers/hwmon/lis3lv02d.c
> +++ b/drivers/hwmon/lis3lv02d.c
> @@ -312,6 +312,11 @@ static void lis3lv02d_joystick_open(struct input_polled_dev *pidev)
>
> if (lis3_dev.pdata&& lis3_dev.whoami == WAI_8B&& lis3_dev.idev)
> atomic_set(&lis3_dev.wake_thread, 1);
> + /*
> + * Update coordinates for the case where poll interval is 0 and
> + * the chip in running purely under interrupt control
> + */
> + lis3lv02d_joystick_poll(pidev);
> }
>
> static void lis3lv02d_joystick_close(struct input_polled_dev *pidev)
--
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