drivers: reset: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-11 22:10:38 -05:00 committed by Kumar Gala
parent e3a75fee79
commit e5de3ac656

View file

@ -1,9 +1,7 @@
# Copyright (c) 2022 Andrei-Edward Popa
# SPDX-License-Identifier: Apache-2.0
# Workaround for not being able to have commas in macro arguments
DT_COMPAT_RPI_PICO_RESET := raspberrypi,pico-reset
config RESET_RPI_PICO
bool "Raspberry Pi Reset Controller driver"
default $(dt_compat_enabled,$(DT_COMPAT_RPI_PICO_RESET))
default y
depends on DT_HAS_RASPBERRYPI_PICO_RESET_ENABLED