zephyr/drivers/sensor
Martí Bolívar 87e1743ae0 devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH
Make drivers multi-instance wherever possible using DT_INST_FOREACH.
This allows removing DT_HAS_DRV_INST in favor of making drivers just
do the right thing regardless of how many instances there are.

There are a few exceptions:

- SoC drivers which use CMake input files (like i2c_dw.c) or otherwise
  would require more time to convert than I have at the moment. For the
  sake of expediency, just inline the DT_HAS_DRV_INST expansion for
  now in these cases.

- SoC drivers which are explicitly single-instance (like the nRF SAADC
  driver). Again for the sake of expediency, drop a BUILD_ASSERT in
  those cases to make sure the assumption that all supported SoCs have
  at most one available instance is valid, failing fast otherwise.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-06 17:35:08 -05:00
..
adt7420
adxl345
adxl362
adxl372
ak8975
amg88xx
ams_iAQcore
apds9960
bma280
bmc150_magn
bme280
bme680
bmg160
bmi160
bmm150
bq274xx
ccs811
dht
ens210
fxas21002
fxos8700
grove
hmc5883l
hp206c
hts221
iis2dlpc
iis2mdc
iis3dhhc
isl29035
ism330dhcx
lis2dh
lis2ds12
lis2dw12
lis2mdl
lis3mdl
lps22hb
lps22hh
lps25hb
lsm6ds0
lsm6dsl
lsm6dso
lsm9ds0_gyro
lsm9ds0_mfd
lsm303dlhc_magn
max30101
max44009
mchp_tach_xec
mcp9808
mpr
mpu6050
ms5607
ms5837
nrf5
nxp_kinetis_temp
opt3001
pms7003
qdec_nrfx
sht3xd
si7006
si7060
stts751
sx9500
th02
ti_hdc
tmp007
tmp112
tmp116
vl53l0x
CMakeLists.txt
Kconfig
sensor_handlers.c
sensor_shell.c