HID: change KEY_DATA from 0x275 to 0x277
Subsystems (2)
PATCH 1/1 HID: change KEY_DATA from 0x275 to 0x277
0x275 is used by KEY_FASTREVERSE. Or, was that on purpose to use the same value as KEY_FASTREVERSE for KEY_DATA?
--- include/uapi/linux/input-event-codes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/input-event-codes.h +1 -1
@@ -640,7 +640,7 @@* Control a data application associated with the currently viewed channel, * e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.) */ -#define KEY_DATA 0x275 +#define KEY_DATA 0x277#define BTN_TRIGGER_HAPPY 0x2c0#define BTN_TRIGGER_HAPPY1 0x2c0
Signature · 1 line
2.7.4
Dmitry Torokhov
maintainerQuoted 4 lines · Ping Cheng
0x275is used byKEY_FASTREVERSE. Or, was that on purpose to use the same value asKEY_FASTREVERSEforKEY_DATA?Signed-off-by Ping Cheng <[email protected]>
Ugh, that's not good. I guess we should indeed change this and make sure it goes to stable.
Hans, Kamil, I do not suppose anyone actually been using KEY_DATA as it would have been clashing with KEY_FASTREVERSE?
Thanks.
Quoted 20 lines
--- include/uapi/linux/input-event-codes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/input-event-codes.h +1
-1@@ -640,7 +640,7 @@* Control a data application associated with the currently viewed channel, * e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.) */ -#define KEY_DATA 0x275 +#define KEY_DATA 0x277#define BTN_TRIGGER_HAPPY 0x2c0#define BTN_TRIGGER_HAPPY1 0x2c0Signature · 1 line
2.7.4
Signature · 1 line
Dmitry
Hans Verkuil
Acked-byQuoted 11 lines · Dmitry Torokhov
Quoted 4 lines · Ping Cheng
0x275is used byKEY_FASTREVERSE. Or, was that on purpose to use the same value asKEY_FASTREVERSEforKEY_DATA?Signed-off-by Ping Cheng <[email protected]>Ugh, that's not good. I guess we should indeed change this and make sure it goes to stable.
Hans, Kamil, I do not suppose anyone actually been using
KEY_DATAas it would have been clashing withKEY_FASTREVERSE?
No problem. These CEC event defines are only used by the CEC framework which as of 4.9 is still in staging (will go out of staging in 4.10). So it is no problem changing this. Nor has anyone been using this.
So:
Thanks!
Hans
Quoted 24 lines
Thanks.
Quoted 20 lines
--- include/uapi/linux/input-event-codes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/input-event-codes.h +1
-2@@ -640,7 +640,7 @@* Control a data application associated with the currently viewed channel, * e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.) */ -#define KEY_DATA 0x275 +#define KEY_DATA 0x277#define BTN_TRIGGER_HAPPY 0x2c0#define BTN_TRIGGER_HAPPY1 0x2c0 --2.7.4