1
1
# SPDX-License-Identifier: GPL-2.0-only
2
- menu "I2C HID support"
3
- depends on I2C
2
+ menuconfig I2C_HID
3
+ tristate "I2C HID support"
4
+ default y
5
+ depends on I2C && INPUT && HID
6
+
7
+ if I2C_HID
4
8
5
9
config I2C_HID_ACPI
6
10
tristate "HID over I2C transport layer ACPI driver"
7
- default n
8
- depends on I2C && INPUT && ACPI
11
+ depends on ACPI
12
+ select I2C_HID_CORE
9
13
help
10
14
Say Y here if you use a keyboard, a touchpad, a touchscreen, or any
11
15
other HID based devices which is connected to your computer via I2C.
@@ -19,8 +23,8 @@ config I2C_HID_ACPI
19
23
20
24
config I2C_HID_OF
21
25
tristate "HID over I2C transport layer Open Firmware driver"
22
- default n
23
- depends on I2C && INPUT && OF
26
+ depends on OF
27
+ select I2C_HID_CORE
24
28
help
25
29
Say Y here if you use a keyboard, a touchpad, a touchscreen, or any
26
30
other HID based devices which is connected to your computer via I2C.
@@ -34,8 +38,8 @@ config I2C_HID_OF
34
38
35
39
config I2C_HID_OF_ELAN
36
40
tristate "Driver for Elan hid-i2c based devices on OF systems"
37
- default n
38
- depends on I2C && INPUT && OF
41
+ depends on OF
42
+ select I2C_HID_CORE
39
43
help
40
44
Say Y here if you want support for Elan i2c devices that use
41
45
the i2c-hid protocol on Open Firmware (Device Tree)-based
@@ -49,8 +53,8 @@ config I2C_HID_OF_ELAN
49
53
50
54
config I2C_HID_OF_GOODIX
51
55
tristate "Driver for Goodix hid-i2c based devices on OF systems"
52
- default n
53
- depends on I2C && INPUT && OF
56
+ depends on OF
57
+ select I2C_HID_CORE
54
58
help
55
59
Say Y here if you want support for Goodix i2c devices that use
56
60
the i2c-hid protocol on Open Firmware (Device Tree)-based
@@ -62,10 +66,7 @@ config I2C_HID_OF_GOODIX
62
66
will be called i2c-hid-of-goodix. It will also build/depend on
63
67
the module i2c-hid.
64
68
65
- endmenu
66
-
67
69
config I2C_HID_CORE
68
70
tristate
69
- default y if I2C_HID_ACPI=y || I2C_HID_OF=y || I2C_HID_OF_GOODIX=y
70
- default m if I2C_HID_ACPI=m || I2C_HID_OF=m || I2C_HID_OF_GOODIX=m
71
- select HID
71
+ endif
72
+
0 commit comments