rotary: added input sync after each report
authorsungmin ha <sungmin82.ha@samsung.com>
Thu, 30 Apr 2015 01:26:58 +0000 (10:26 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Thu, 30 Apr 2015 01:30:24 +0000 (10:30 +0900)
Change-Id: I2cfb4847cea78aad41f830f1e8e29bb815f8ead2
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
drivers/maru/maru_virtio_rotary.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index b8f3f69..d0c7862
@@ -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 */