Use DEVICE_DT_GET_ANY instead of hard-coding a device label property. As far as I can tell from in-tree drivers, "TEMP_0" is nRF specific and refers to nodes with compatible "nordic,nrf-temp", so use that and clean up the driver Kconfig while we're here. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
17 lines
244 B
Plaintext
17 lines
244 B
Plaintext
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
mainmenu "Bluetooth: Peripheral HT"
|
|
|
|
if SOC_FAMILY_NRF
|
|
|
|
config SENSOR
|
|
default y
|
|
|
|
config TEMP_NRF5
|
|
default y
|
|
|
|
endif # SOC_FAMILY_NRF
|
|
|
|
source "Kconfig.zephyr"
|