zephyr/drivers/sensor/lis2dh
Himanshu Jha cb350e9399 sensors: lis2dh: Handle return value of lis2dh_reg_read_byte function
Provide necessary error handling for `lis2dh_reg_read_byte` function
which might fail.

Also, use a common `status` variable to be used for storing the
error code.

Fixes #10590
Coverity-CID: 188733

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
2018-11-09 16:11:26 -06:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig sensor: Eliminate repetitive Kconfig "depends on" in sensor drivers 2018-09-13 01:02:37 -04:00
lis2dh_trigger.c sensors: lis2dh: Handle return value of lis2dh_reg_read_byte function 2018-11-09 16:11:26 -06:00
lis2dh.c sensors: lis2dh: move header after log module init 2018-10-16 08:49:53 -04:00
lis2dh.h sensors: lis2dh: move header after log module init 2018-10-16 08:49:53 -04:00