From 8a3242a39d6b6c1dc3556e8ec903bea46105f11f Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Thu, 30 Apr 2015 10:26:58 +0900 Subject: [PATCH] rotary: added input sync after each report Change-Id: I2cfb4847cea78aad41f830f1e8e29bb815f8ead2 Signed-off-by: sungmin ha --- drivers/maru/maru_virtio_rotary.c | 1 + 1 file changed, 1 insertion(+) mode change 100755 => 100644 drivers/maru/maru_virtio_rotary.c diff --git a/drivers/maru/maru_virtio_rotary.c b/drivers/maru/maru_virtio_rotary.c old mode 100755 new mode 100644 index b8f3f69fb721..d0c7862a50ff --- a/drivers/maru/maru_virtio_rotary.c +++ b/drivers/maru/maru_virtio_rotary.c @@ -124,6 +124,7 @@ static void vq_rotary_handler(struct virtqueue *vq) value = (event.delta > 0) ? last_pos + i : last_pos - i; if ((value % DETENT_UNIT) == 0) { input_report_rel(vrtr->idev, REL_WHEEL, 1); + input_sync(vrtr->idev); if (get_rotary_pos(value) != last_detent) { last_detent = get_rotary_pos(value); if (event.delta > 0) { /* CW */ -- 2.34.1