zephyr/samples/sensor
Tomasz Bursztyka e18fcbba5a device: Const-ify all device driver instance pointers
Now that device_api attribute is unmodified at runtime, as well as all
the other attributes, it is possible to switch all device driver
instance to be constant.

A coccinelle rule is used for this:

@r_const_dev_1
  disable optional_qualifier
@
@@
-struct device *
+const struct device *

@r_const_dev_2
 disable optional_qualifier
@
@@
-struct device * const
+const struct device *

Fixes #27399

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-09-02 13:48:13 +02:00
..
adt7420 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
adxl362 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
adxl372 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
amg88xx device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ams_iAQcore device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
apds9960 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bme280 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bme680 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bmg160 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bmm150 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bq274xx device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ccs811 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dht device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dps310 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ens210 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fxas21002 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fxos8700 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fxos8700-hid device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
grove_light device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
grove_temperature device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hmc5883l device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hts221 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
isl29035 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lis2dh device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lps22hb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lps22hh device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lsm6dsl device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lsm303dlhc device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
magn_polling device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
max30101 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
max44009 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mcp9808 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mpr device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mpu6050 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ms5837 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sensor_shell samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
sht3xd device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sm351lt device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sx9500 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
th02 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
thermometer device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ti_hdc device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
tmp112 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
tmp116 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
vl53l0x device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wsen_itds device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sensor.rst