Skip to content

Commit 7e41b2e

Browse files
bentissJiri Kosina
authored andcommitted
HID: force HID depending on INPUT
In most configurations, INPUT is actually a boolean: either y or disabled, but when it's disabled, you can't do much on your average laptop. But it turns out that there is a possibility to have INPUT as a module: you have to disable VT and TTY (of course), but also enable EXPERT. I'll leave how to disable VT and TTY as an exercise for the bravest. Anyway, if INPUT is m, we can still configure HID as y, which is not correct because hid-input.c depends on the input API, meaning that vmlinuz can not link. So: add depends on INPUT too at the HID level, to ensure that if INPUT=m, HID can only be m or disabled. Fixes: 25621bc ("HID: Kconfig: split HID support and hid-core compilation") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6cc90cc commit 7e41b2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if HID_SUPPORT
1515
config HID
1616
tristate "HID bus core support"
1717
default y
18+
depends on INPUT
1819
help
1920
A human interface device (HID) is a type of computer device that
2021
interacts directly with and takes input from humans. The term "HID"

0 commit comments

Comments
 (0)