zephyr/drivers/sensor
Kumar Gala b4a3880a75 drivers: remove unnecessary use of DEVICE_AND_API_INIT
For drivers that support CONFIG_DEVICE_POWER_MANAGEMENT there are some
cases that look like:

  #ifdef CONFIG_DEVICE_POWER_MANAGEMENT
    DEVICE_DEFINE()
  #else
    DEVICE_AND_API_INIT()
  #endif

There is no need to special case this as the pm_control_fn argument to
DEVICE_DEFINE will just be ignored in the
!CONFIG_DEVICE_POWER_MANAGEMENT case.  So we can cleanup the code a
little and remove the #else cases for the drivers that do this.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-11-06 09:42:47 -06:00
..
adt7420 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
adxl345 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
adxl362 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
adxl372 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
ak8975 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
amg88xx drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
ams_iAQcore dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
apds9960 drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
bma280 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
bmc150_magn drivers: sensor: Fix device instance const qualifier loss 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 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
bmi160 drivers: sensor: bmi160: Add support for I2C 2020-10-27 16:41:30 +01:00
bmm150 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bq274xx dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
ccs811 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05: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 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
fxas21002 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
fxos8700 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
grove device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hmc5883l drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
hp206c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hts221 drivers: sensor: hts221: Add checks for drdy_gpios macros 2020-09-24 09:51:08 -05:00
iis2dh modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis2dlpc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis2iclx drivers/sensor: add support to IIS2ICLX accelerometer 2020-10-15 09:57:47 -05:00
iis2mdc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis3dhhc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
isl29035 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
ism330dhcx modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis2dh dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lis2ds12 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lis2dw12 modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis2mdl modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis3mdl dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lps22hb dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lps22hh modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lps25hb dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm6ds0 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm6dsl drivers/sensor: lsm6dsl: Fix build when irq_gpios is not in DT 2020-11-02 10:00:07 -06:00
lsm6dso modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lsm9ds0_gyro dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm9ds0_mfd dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm303dlhc_magn device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
max17055 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
max30101 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
max44009 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mchp_tach_xec drivers: sensor: Use macro parameter to dereference device 2020-10-21 08:29:36 -04:00
mcp9808 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
mpr dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
mpu6050 drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
ms5607 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ms5837 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
nrf5 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
nxp_kinetis_temp device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
opt3001 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
pms7003 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
qdec_nrfx device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sht3xd drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
si7006 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
si7055 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
si7060 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
sm351lt drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
stts751 modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
sx9500 drivers: sensor: Fix device instance const qualifier loss 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
ti_hdc dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
tmp007 drivers: sensor: Fix device instance const qualifier loss 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 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
vcnl4040 drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
vl53l0x dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
wsen_itds device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
CMakeLists.txt drivers/sensor: add support to IIS2ICLX accelerometer 2020-10-15 09:57:47 -05:00
Kconfig drivers/sensor: add support to IIS2ICLX accelerometer 2020-10-15 09:57:47 -05:00
sensor_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sensor_shell.c sensor_shell: added missing sensor channel. 2020-11-02 09:52:54 -06:00
shell_battery.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00