From eb4d481f0d282e8fbe1031c5d221f8589b9c6e8f Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Mon, 23 Dec 2013 13:43:56 +0100 Subject: orientation: Sync input after reporting values Signed-off-by: Paul Kocialkowski --- drivers/input/misc/orientation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/misc/orientation.c b/drivers/input/misc/orientation.c index f73d620..14186ec 100644 --- a/drivers/input/misc/orientation.c +++ b/drivers/input/misc/orientation.c @@ -75,6 +75,7 @@ orientation_delay_store(struct device *dev, struct device_attribute *attr, data->delay = value; input_report_rel(input_data, REL_CONTROL_REPORT, (data->enabled << 16) | value); + input_sync(input_data); mutex_unlock(&data->mutex); return count; @@ -110,6 +111,7 @@ orientation_enable_store(struct device *dev, struct device_attribute *attr, data->enabled = value; input_report_rel(input_data, REL_CONTROL_REPORT, (value << 16) | data->delay); + input_sync(input_data); mutex_unlock(&data->mutex); return count; @@ -123,6 +125,7 @@ orientation_wake_store(struct device *dev, struct device_attribute *attr, static int cnt = 1; input_report_rel(input_data, REL_WAKE, cnt++); + input_sync(input_data); return count; } -- cgit v1.1