mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Samu Onkalo <samu.p.onkalo@nokia.com> Acked-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
This commit is contained in:
parent
e726111f95
commit
821f664644
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue