zephyr/drivers/sensor/adxl372
Himanshu Jha b8c19d8c75 util: Add GENMASK helper macro definition
Macro is used to create contiguous bitmask between the
arguments passed to the macro.

BITS_PER_LONG is computed as the multiplication of predefined
macros `__CHAR_BIT__` and `__SIZEOF_LONG__`.

Both gcc and clang support these predefined macros.

With this change, replace the redundant defintions of
GENMASK with the new generic macro available.

Fixes #10843

Suggested-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
2018-11-01 13:40:01 +01:00
..
adxl372_trigger.c drivers: sensor: Migrate to new logger 2018-10-16 08:49:53 -04:00
adxl372.c drivers: sensor: Migrate to new logger 2018-10-16 08:49:53 -04:00
adxl372.h util: Add GENMASK helper macro definition 2018-11-01 13:40:01 +01:00
CMakeLists.txt
Kconfig