]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: mcp2221: set gpio pin mode
authorHeiko Schocher <hs@denx.de>
Sun, 8 Jun 2025 16:33:15 +0000 (18:33 +0200)
committerJiri Kosina <jkosina@suse.com>
Fri, 20 Jun 2025 06:48:13 +0000 (08:48 +0200)
commit0d6b550dce55f2bd47579a92ffc000cb0186e4c4
tree215ba98eaf495ccb32e295bf542ee2d913e41730
parent2043ae9019e0f75c7785048230586c3f3ca0a2a4
HID: mcp2221: set gpio pin mode

in case we have GPIOLIB enabled the gpio pins are used
from the current driver as gpio pins. But may the gpio
functions of this pins are not enabled in the flash
of the chip and so gpio access fails.

In case CONFIG_IIO is not enabled we can prevent this
issue of the driver simply by enabling the gpio mode
for all pins.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-mcp2221.c