fix(drivers): Avoid build failures for GPIO driver

* Avoid defining the ZMK GPIO drivers lib if none of the drivers  are
  selected.
This commit is contained in:
Peter Johanson
2022-06-05 05:56:45 +00:00
committed by Pete Johanson
parent 505c481f6a
commit b5e73204e8
4 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ menuconfig GPIO_595
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_GPIO_595))
depends on SPI
select HAS_DTS_GPIO
select ZMK_DRIVERS_GPIO
help
Enable driver for 595 shift register chip using SPI.