Skip to content
Snippets Groups Projects
Commit 821f6646 authored by Samu Onkalo's avatar Samu Onkalo Committed by Guenter Roeck
Browse files

hwmon: lis3: Update coordinates at polled device open


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: default avatarSamu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: default avatarEric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent e726111f
No related branches found
No related tags found
No related merge requests found
...@@ -346,6 +346,11 @@ static void lis3lv02d_joystick_open(struct input_polled_dev *pidev) ...@@ -346,6 +346,11 @@ static void lis3lv02d_joystick_open(struct input_polled_dev *pidev)
if (lis3_dev.pdata && lis3_dev.whoami == WAI_8B && lis3_dev.idev) if (lis3_dev.pdata && lis3_dev.whoami == WAI_8B && lis3_dev.idev)
atomic_set(&lis3_dev.wake_thread, 1); 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) static void lis3lv02d_joystick_close(struct input_polled_dev *pidev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment