zephyr/drivers/sensor/lis2dh
Kumar Gala 8de6778e90 sensor: lis2dh: Fix gcc8 compiler warning
We get the following warning with sdk-ng:

	drivers/sensor/lis2dh/lis2dh.c:210:38: error: bitwise comparison
	always evaluates to false [-Werror=tautological-compare]

	if ((value & LIS2DH_LP_EN_BIT_MASK) == 1 && ...
                                      ^~
The test needs to be:
	(value & LIS2DH_LP_EN_BIT_MASK) == LIS2DH_LP_EN_BIT_MASK

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-30 17:19:41 -06:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig driver/sensor: use lis2dh as common driver among multiple sensors 2019-01-24 07:26:16 -06:00
lis2dh.c sensor: lis2dh: Fix gcc8 compiler warning 2019-01-30 17:19:41 -06:00
lis2dh.h driver/sensor: lis2dh: align driver to auto-generated dts macros 2019-01-24 07:26:16 -06:00
lis2dh_trigger.c driver/sensor: lis2dh: align driver to auto-generated dts macros 2019-01-24 07:26:16 -06:00