zephyr/samples/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
adxl362
adxl372
amg88xx device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ams_iAQcore device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
apds9960 samples: conf: don't enable option twice 2020-04-25 13:39:17 -05:00
bme280 devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
bme680 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bmg160
bmm150 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bq274xx device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ccs811 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
dht
ens210 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
fxas21002
fxos8700 samples: sensor: fxos8700: enable testing on lpcxpresso55s16_ns 2020-05-05 17:03:29 -05:00
fxos8700-hid samples: Convert DT_ALIAS_* to new DT_ALIAS() macro 2020-05-04 15:28:20 -05:00
grove_light
grove_temperature
hmc5883l device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
hts221
isl29035 samples: remove unused harness definition 2020-05-05 06:16:50 -04:00
lis2dh
lps22hb
lps22hh
lsm6dsl
lsm303dlhc
magn_polling device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
max30101 gpio: mcux: Convert convert to DT_INST defines 2020-04-23 17:07:41 -05:00
max44009
mcp9808
mpr samples: sensor: mpr: Convert to use new dts macros 2020-04-30 17:44:50 -05:00
mpu6050
ms5837 samples: sensor: ms5837: Remove unneeded setting of Kconfig 2020-05-05 11:44:34 -05:00
sensor_shell
sht3xd
sx9500 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
th02
thermometer device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ti_hdc device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
tmp112 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
tmp116 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
vl53l0x
sensor.rst