Skip to content

Commit 2465f0d

Browse files
arndbJiri Kosina
authored andcommitted
HID: mcp2221: add gpiolib dependency
Without gpiolib, this driver fails to link: arm-linux-gnueabi-ld: drivers/hid/hid-mcp2221.o: in function `mcp2221_probe': hid-mcp2221.c:(.text+0x1b0): undefined reference to `devm_gpiochip_add_data' arm-linux-gnueabi-ld: drivers/hid/hid-mcp2221.o: in function `mcp_gpio_get': hid-mcp2221.c:(.text+0x30c): undefined reference to `gpiochip_get_data' Fixes: 328de1c ("HID: mcp2221: add GPIO functionality support") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Rishi Gupta <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 538f674 commit 2465f0d

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
@@ -1155,6 +1155,7 @@ config HID_ALPS
11551155
config HID_MCP2221
11561156
tristate "Microchip MCP2221 HID USB-to-I2C/SMbus host support"
11571157
depends on USB_HID && I2C
1158+
depends on GPIOLIB
11581159
---help---
11591160
Provides I2C and SMBUS host adapter functionality over USB-HID
11601161
through MCP2221 device.

0 commit comments

Comments
 (0)