use dt_compat setup for max7318 kconfig

This commit is contained in:
zhiayang 2022-06-04 16:55:50 +08:00
parent 012031c1a7
commit f7e2b29b64
No known key found for this signature in database
GPG key ID: 5E2F30AD6F08571F

View file

@ -3,8 +3,11 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT
DT_COMPAT_ZMK_GPIO_MAX7318 := zmk,gpio-max7318
menuconfig GPIO_MAX7318
bool "MAX7318 I2C-based GPIO chip"
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_GPIO_MAX7318))
depends on I2C
select HAS_DTS_GPIO
help