Skip to content

Commit

Permalink
drivers: gpio: remove unused GPIO selection
Browse files Browse the repository at this point in the history
Fixes: zephyrproject-rtos#38403

Removing unneeded `imply GPIO` and `CONFIG_GPIO=y` occurrences where no
files are added to the gpio zephyr library.

Also removed `CONFIG_GPIO=y` occurences where this is handled by
defconfigs for the soc or board.

Selection of GPIO without selecting any drivers results in the warning:

> No SOURCES given to Zephyr library: drivers__gpio
>
> Excluding target from build.

Signed-off-by: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand committed Sep 14, 2021
1 parent 8e123a2 commit 0817807
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion drivers/modem/Kconfig.quectel-bg9x
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ config MODEM_QUECTEL_BG9X
select MODEM_IFACE_UART
select MODEM_SOCKET
select NET_SOCKETS_OFFLOAD
imply GPIO
help
Choose this setting to enable quectel BG9x LTE-CatM1/NB-IoT modem
driver.
Expand Down
1 change: 0 additions & 1 deletion drivers/modem/Kconfig.ublox-sara-r4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ config MODEM_UBLOX_SARA
select MODEM_SOCKET
select NET_OFFLOAD
select NET_SOCKETS_OFFLOAD
imply GPIO
help
Choose this setting to enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem
driver.
Expand Down
2 changes: 0 additions & 2 deletions samples/boards/stm32/power_mgmt/blinky/prj.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
CONFIG_GPIO=y

CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y
1 change: 0 additions & 1 deletion samples/subsys/mgmt/osdp/control_panel/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_GPIO=y

# OSDP config
CONFIG_OSDP=y
Expand Down
1 change: 0 additions & 1 deletion samples/subsys/mgmt/osdp/peripheral_device/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_GPIO=y

# OSDP config
CONFIG_OSDP=y
Expand Down

0 comments on commit 0817807

Please sign in to comment.