zephyr/drivers/sensor
Leandro Pereira c200367b68 drivers: Perform a runtime check if a driver is capable of an operation
Driver APIs might not implement all operations, making it possible for
a user thread to get the kernel to execute a function at 0x00000000.

Perform runtime checks in all the driver handlers, checking if they're
capable of performing the requested operation.

Fixes #6907.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2018-04-26 02:57:12 +05:30
..
adxl362 drivers/sensors: Switch adxl362 driver to new SPI API 2018-04-04 19:02:35 +02:00
ak8975 drivers: ak8975: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
amg88xx sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
apds9960
bma280 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
bmc150_magn
bme280 drivers/sensors: Switch bme280 driver to new SPI API 2018-04-04 19:02:35 +02:00
bmg160 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
bmi160 drivers/sensors: Switch bmi160 driver to new SPI API 2018-04-04 19:02:35 +02:00
bmm150
ccs811 sensors: ccs811: Deassert the reset pin with GPIO 2018-04-09 17:09:06 -05:00
dht sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
fxas21002 dts: sensor: Add dts yaml bindings for the fxas21002 sensor 2018-01-31 10:17:58 -06:00
fxos8700 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
hdc1008 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
hmc5883l drivers: hmc5883l: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
hp206c sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
hts221 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
isl29035 drivers: isl29035: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
lis2dh drivers/sensors: Switch lis2dh driver to new SPI API 2018-04-04 19:02:35 +02:00
lis3dh sensors: lis3dh: Fix i2c burst read 2018-03-28 10:42:34 -04:00
lis3mdl sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
lps22hb sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
lps25hb sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
lsm6ds0 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
lsm6dsl sensors/lsm5dsl: Fix SPI API usage 2018-04-21 05:42:59 -07:00
lsm9ds0_gyro drivers: lsm9ds0_gyro: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
lsm9ds0_mfd sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
max30101 dts: sensor: Add dts yaml bindings for the max30101 sensor 2018-01-31 10:17:58 -06:00
max44009
mcp9808 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
mpu6050 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
nrf5 drivers: sensor: temp_nrf5: fix sensor type 2018-04-04 12:29:05 -05:00
pms7003 drivers: pms7003: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
sht3xd sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
sx9500 drivers: sx9500: Initialise driver with DEVICE_AND_API_INIT 2018-02-05 12:04:20 -06:00
th02 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
tmp007 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
tmp112 sensors: Add separation between ambient and die temperature 2018-04-03 22:29:11 -04:00
vl53l0x drivers: sensor: vl53l0x: Use proper variable type for return code 2018-02-17 09:19:35 -05:00
CMakeLists.txt drivers: sensor: Add support for CCS811 Digital Gas Sensor 2018-02-06 11:16:26 -05:00
Kconfig drivers: sensor: Add support for CCS811 Digital Gas Sensor 2018-02-06 11:16:26 -05:00
sensor_handlers.c drivers: Perform a runtime check if a driver is capable of an operation 2018-04-26 02:57:12 +05:30