forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: w1: Update drivers to use devicetree Kconfig symbol
Update w1 drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. Signed-off-by: Kumar Gala <[email protected]>
- Loading branch information
1 parent
5b9e0b6
commit 0779a93
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2022, Thomas Stranger | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
DT_COMPAT_VND_W1 := vnd,w1 | ||
|
||
# Hidden option to enable the vnd,w1 1-Wire host driver used in testing. | ||
config W1_TEST | ||
def_bool $(dt_compat_enabled,$(DT_COMPAT_VND_W1)) | ||
def_bool DT_HAS_VND_W1_ENABLED | ||
depends on DT_HAS_VND_W1_ENABLED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters