From f7e2b29b64cd39d6fba851531b152fd79b38859b Mon Sep 17 00:00:00 2001 From: zhiayang Date: Sat, 4 Jun 2022 16:55:50 +0800 Subject: [PATCH] use dt_compat setup for max7318 kconfig --- app/drivers/gpio/Kconfig.max7318 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/drivers/gpio/Kconfig.max7318 b/app/drivers/gpio/Kconfig.max7318 index d5780403..1a2f804c 100644 --- a/app/drivers/gpio/Kconfig.max7318 +++ b/app/drivers/gpio/Kconfig.max7318 @@ -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