Commit 3d74c9e
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: 960f9df ("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>1 parent e91fc48 commit 3d74c9e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
688 | 689 | | |
689 | 690 | | |
690 | 691 | | |
| 692 | + | |
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
| |||
1153 | 1155 | | |
1154 | 1156 | | |
1155 | 1157 | | |
| 1158 | + | |
1156 | 1159 | | |
1157 | 1160 | | |
1158 | 1161 | | |
| |||
1169 | 1172 | | |
1170 | 1173 | | |
1171 | 1174 | | |
1172 | | - | |
1173 | 1175 | | |
1174 | 1176 | | |
1175 | 1177 | | |
| |||
0 commit comments