summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2017-11-03 12:17:40 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-11-03 12:47:48 -0700
commit6f29c244075c12713b4d8c32a2707fa4604bf60d (patch)
treed830363566cae3a6d38ceb4528679d7842b5aba0 /drivers/input
parent53f0b7f0dfd5fc560047fa26e36b7b0426287705 (diff)
downloadlinux-6f29c244075c12713b4d8c32a2707fa4604bf60d.tar.gz
linux-6f29c244075c12713b4d8c32a2707fa4604bf60d.tar.bz2
linux-6f29c244075c12713b4d8c32a2707fa4604bf60d.zip
Input: sparse-keymap - send sync event for KE_SW/KE_VSW
Sync events are sent by sparse_keymap_report_entry for normal KEY_* events, and are generated by several drivers after generating SW_* events, so sparse_keymap_report_entry should do the same. Without the sync, events are accumulated in the kernel. Currently, no driver uses sparse-keymap for SW_* events, but it is required for the intel-vbtn platform driver to generate SW_TABLET_MODE events. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/sparse-keymap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/sparse-keymap.c b/drivers/input/sparse-keymap.c
index bb0349fa64bc..fd03e55768c9 100644
--- a/drivers/input/sparse-keymap.c
+++ b/drivers/input/sparse-keymap.c
@@ -255,6 +255,7 @@ void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *k
case KE_VSW:
input_report_switch(dev, ke->sw.code, value);
+ input_sync(dev);
break;
}
}