zephyr/drivers/sensor
Martí Bolívar 6e8775ff84 devicetree: remove DT_HAS_NODE_STATUS_OKAY
Several reviewers agreed that DT_HAS_NODE_STATUS_OKAY(...) was an
undesirable API for the following reasons:

- it's inconsistent with the rest of the DT_NODE_HAS_FOO names
- DT_NODE_HAS_FOO_BAR_BAZ(node) was agreed upon as a shorthand
  for macros which are equivalent to
  DT_NODE_HAS_FOO(node) && DT_NODE_HAS_BAR(node) &&
- DT_NODE_HAS_BAZ(node), and DT_HAS_NODE_STATUS_OKAY is an odd duck
- DT_NODE_HAS_STATUS(..., okay) was viewed as more readable anyway
- it is seen as a somewhat aesthetically challenged name

Replace all users with DT_NODE_HAS_STATUS(..., okay), which is
semantically equivalent.

This is mostly done with sed, but a few remaining cases were done by
hand, along with whitespace, docs, and comment changes. These special
cases include the Nordic SOC static assert files.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-13 18:24:42 +02:00
..
adt7420 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl345 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl362 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl372 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ak8975 devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
amg88xx device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ams_iAQcore drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
apds9960 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bma280 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
bmc150_magn device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bme280 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
bme680 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
bmg160 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bmi160 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bmm150 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bq274xx devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
ccs811 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
dht device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ens210 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
fxas21002 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
fxos8700 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
grove device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
hmc5883l drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
hp206c drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
hts221 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
iis2dlpc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
iis2mdc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
iis3dhhc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
isl29035 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
ism330dhcx devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2dh devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
lis2ds12 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2dw12 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2mdl devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis3mdl sensor: lis3mdl: Check possible error in trigger_set 2020-04-20 15:43:23 +02:00
lps22hb device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lps22hh devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lps25hb device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm6ds0 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm6dsl devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lsm6dso devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lsm9ds0_gyro device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm9ds0_mfd device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm303dlhc_magn device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
max30101 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
max44009 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
mchp_tach_xec devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
mcp9808 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
mpr device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
mpu6050 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ms5607 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
ms5837 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
nrf5 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
nxp_kinetis_temp devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
opt3001 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
pms7003 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
qdec_nrfx drivers: sensor: qdec_nrfx: move to new DT API 2020-04-20 15:43:01 +02:00
sht3xd device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
si7006 sensor: si7006: combined RH/T measurements 2020-04-22 15:51:15 -05:00
si7060 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
stts751 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
sx9500 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
th02 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
ti_hdc drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp007 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp112 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp116 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
vl53l0x drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
CMakeLists.txt Sensor: mpr: Add Honeywell MPR driver 2020-04-22 17:39:31 +02:00
Kconfig Sensor: mpr: Add Honeywell MPR driver 2020-04-22 17:39:31 +02:00
sensor_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
sensor_shell.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00