Skip to content

Commit 04515e0

Browse files
andy-shevBenjamin Tissoires
authored andcommitted
HID: debug: Remove duplicate entry (BTN_WHEEL)
BTN_WHEEL is duplicated (by value) and compiler is not happy about that: drivers/hid/hid-debug.c:3302:16: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides] 3302 | [BTN_WHEEL] = "BtnWheel", [KEY_OK] = "Ok", | ^~~~~~~~~~ drivers/hid/hid-debug.c:3301:20: note: previous initialization is here 3301 | [BTN_GEAR_DOWN] = "BtnGearDown", [BTN_GEAR_UP] = "BtnGearUp", | ^~~~~~~~~~~~~ Remove it again, as the commit 7b2daa6 ("HID: debug: Remove duplicates from 'keys'") already did this once in the past. Fixes: 194808a ("HID: Fix debug name for BTN_GEAR_DOWN, BTN_GEAR_UP, BTN_WHEEL") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 38224c4 commit 04515e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3299,7 +3299,7 @@ static const char *keys[KEY_MAX + 1] = {
32993299
[BTN_STYLUS2] = "Stylus2", [BTN_TOOL_DOUBLETAP] = "ToolDoubleTap",
33003300
[BTN_TOOL_TRIPLETAP] = "ToolTripleTap", [BTN_TOOL_QUADTAP] = "ToolQuadrupleTap",
33013301
[BTN_GEAR_DOWN] = "BtnGearDown", [BTN_GEAR_UP] = "BtnGearUp",
3302-
[BTN_WHEEL] = "BtnWheel", [KEY_OK] = "Ok",
3302+
[KEY_OK] = "Ok",
33033303
[KEY_SELECT] = "Select", [KEY_GOTO] = "Goto",
33043304
[KEY_CLEAR] = "Clear", [KEY_POWER2] = "Power2",
33053305
[KEY_OPTION] = "Option", [KEY_INFO] = "Info",

0 commit comments

Comments
 (0)