diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-12-23 13:43:56 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-12-23 13:43:56 +0100 |
commit | eb4d481f0d282e8fbe1031c5d221f8589b9c6e8f (patch) | |
tree | fe09e56f9ed6499f6f9b9b3286ce887779b80a1a | |
parent | d5332517a755bd22a30a96bc93c12394af30fcd6 (diff) | |
download | kernel_samsung_aries-eb4d481f0d282e8fbe1031c5d221f8589b9c6e8f.zip kernel_samsung_aries-eb4d481f0d282e8fbe1031c5d221f8589b9c6e8f.tar.gz kernel_samsung_aries-eb4d481f0d282e8fbe1031c5d221f8589b9c6e8f.tar.bz2 |
orientation: Sync input after reporting values
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | drivers/input/misc/orientation.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |