HID: mcp2221: change 'select GPIOLIB' to imply
authorMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 1 Oct 2022 00:52:07 +0000 (17:52 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 18 Oct 2022 13:00:01 +0000 (15:00 +0200)
commitea418b35103a98329cb019927cc3668c3759b9eb
tree5a319bf57f5e609a6286cd14bcba881456ff5bdf
parentdeb3b88bbb7a197152aee1eb0157283a6914d504
HID: mcp2221: change 'select GPIOLIB' to imply

To avoid recursive dependencies on GPIOLIB when 'imply IIO' is requested
with other drivers we should switch GPIOLIB to an imply.

This isn't the most ideal solution but avoids modifiying the Kconfig for
other drivers, and only requires a singular IS_REACHABLE(CONFIG_GPIOLIB)
check.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-mcp2221.c