Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: rc: imon-rsc keymap has incorrect mappings

KEY_MAX is not a key but designates the highest value a linux keycode
can ever have.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
6fb71958 46e4a266

+4 -3
+4 -3
drivers/media/rc/keymaps/rc-imon-rsc.c
··· 7 7 8 8 // 9 9 // Note that this remote has a stick which its own IR protocol, 10 - // with 16 directions. This is not supported yet. 10 + // with 16 directions. This is supported by the imon_rsc BPF decoder 11 + // in v4l-utils. 11 12 // 12 13 static struct rc_map_table imon_rsc[] = { 13 14 { 0x801010, KEY_EXIT }, ··· 26 25 { 0x80105c, KEY_NUMERIC_9 }, 27 26 { 0x801081, KEY_SCREEN }, /* Desktop */ 28 27 { 0x80105d, KEY_NUMERIC_0 }, 29 - { 0x801082, KEY_MAX }, 28 + { 0x801082, KEY_ZOOM }, /* Maximise */ 30 29 { 0x801048, KEY_ESC }, 31 30 { 0x80104b, KEY_MEDIA }, /* Windows key */ 32 31 { 0x801083, KEY_MENU }, ··· 53 52 { 0x80104e, KEY_STOP }, 54 53 { 0x801052, KEY_REWIND }, 55 54 { 0x801053, KEY_FASTFORWARD }, 56 - { 0x801089, KEY_ZOOM } /* full screen */ 55 + { 0x801089, KEY_FULL_SCREEN } /* full screen */ 57 56 }; 58 57 59 58 static struct rc_map_list imon_rsc_map = {