Skip to content

Commit

Permalink
drivers/gpio/Kconfig.sx1509b: Enable driver automatically when needed
Browse files Browse the repository at this point in the history
Enable the gpio_sx1509b driver by default when a "semtech,sx1509b"
compatible node is enabled in devicetree.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and carlescufi committed Apr 3, 2020
1 parent 011e9ba commit 81fa7ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpio/Kconfig.sx1509b
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81fa7ed

Please sign in to comment.