Skip to content

Commit 2b5de0c

Browse files
Alex Hungandy-shev
authored andcommitted
intel-hid: support KEY_ROTATE_LOCK_TOGGLE
KEY_ROTATE_LOCK_TOGGLE is introduced in 4.16 rc1 and this key event is emitted on Wacom MobileStudio Pro 13. Signed-off-by: Alex Hung <[email protected]> Co-developed-by: Jason Gerecke <[email protected]> Signed-off-by: Jason Gerecke <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 28e8ed2 commit 2b5de0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/intel-hid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ static const struct key_entry intel_array_keymap[] = {
6565
{ KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* Release */
6666
{ KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* Press */
6767
{ KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* Release */
68-
{ KE_SW, 0xC8, { .sw = { SW_ROTATE_LOCK, 1 } } }, /* Press */
69-
{ KE_SW, 0xC9, { .sw = { SW_ROTATE_LOCK, 0 } } }, /* Release */
68+
{ KE_KEY, 0xC8, { KEY_ROTATE_LOCK_TOGGLE } }, /* Press */
69+
{ KE_IGNORE, 0xC9, { KEY_ROTATE_LOCK_TOGGLE } }, /* Release */
7070
{ KE_KEY, 0xCE, { KEY_POWER } }, /* Press */
7171
{ KE_IGNORE, 0xCF, { KEY_POWER } }, /* Release */
7272
{ KE_END },

0 commit comments

Comments
 (0)