From 81fa7ed35bced07a0435cc6c6387f16bcaa01aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Tue, 31 Mar 2020 15:23:10 +0000 Subject: [PATCH] drivers/gpio/Kconfig.sx1509b: Enable driver automatically when needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable the gpio_sx1509b driver by default when a "semtech,sx1509b" compatible node is enabled in devicetree. Signed-off-by: Andrzej Głąbek --- drivers/gpio/Kconfig.sx1509b | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/Kconfig.sx1509b b/drivers/gpio/Kconfig.sx1509b index 37c4ce594dc..343f560b82e 100644 --- a/drivers/gpio/Kconfig.sx1509b +++ b/drivers/gpio/Kconfig.sx1509b @@ -3,8 +3,12 @@ # Copyright (c) 2018 Aapo Vienamo # SPDX-License-Identifier: Apache-2.0 +# Workaround for not being able to have commas in macro arguments +DT_COMPAT_SEMTECH_SX1509B := semtech,sx1509b + menuconfig GPIO_SX1509B bool "SX1509B I2C GPIO chip" + default $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1509B)) depends on I2C select HAS_DTS_GPIO help