HID: mcp2221: correct undefined references when CONFIG_GPIOLIB isn't defined
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 20 Oct 2022 15:30:00 +0000 (23:30 +0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 21 Oct 2022 11:44:05 +0000 (13:44 +0200)
commit3d74c9eca1a2bda03e45f18d13154ac3e0dfba85
tree3a32bd88231ed80539285d2550c9e459f2f947dc
parente91fc483552df10291f9efac5dd9241ca129f2a4
HID: mcp2221: correct undefined references when CONFIG_GPIOLIB isn't defined

Singular #ifdef IS_REACHABLE(CONFIG_GPIOLIB) weren't covering all the
gpiolib functions that were being referenced.

Update the code regions that are commented out when CONFIG_GPIOLIB isn't
enabled to avoid errors.

Fixes: 960f9df7c620 ("HID: mcp2221: add ADC/DAC support via iio subsystem")
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-mcp2221.c