use dt_compat setup for max7318 kconfig
This commit is contained in:
parent
012031c1a7
commit
f7e2b29b64
1 changed files with 3 additions and 0 deletions
|
@ -3,8 +3,11 @@
|
||||||
# Copyright (c) 2022 The ZMK Contributors
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
DT_COMPAT_ZMK_GPIO_MAX7318 := zmk,gpio-max7318
|
||||||
|
|
||||||
menuconfig GPIO_MAX7318
|
menuconfig GPIO_MAX7318
|
||||||
bool "MAX7318 I2C-based GPIO chip"
|
bool "MAX7318 I2C-based GPIO chip"
|
||||||
|
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_GPIO_MAX7318))
|
||||||
depends on I2C
|
depends on I2C
|
||||||
select HAS_DTS_GPIO
|
select HAS_DTS_GPIO
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Reference in a new issue