driver/accel_lis2dh.h: Format with clang-format
BRANCH=none
TEST=none
@@ -89,8 +89,7 @@ enum lis2dh_odr {
/* Absolute maximum rate for sensor */
#define LIS2DH_ODR_MIN_VAL 1000
-#define LIS2DH_ODR_MAX_VAL \
- MOTION_MAX_SENSOR_FREQUENCY(400000, 25000)
+#define LIS2DH_ODR_MAX_VAL MOTION_MAX_SENSOR_FREQUENCY(400000, 25000)
/* Return ODR reg value based on data rate set */
#define LIS2DH_ODR_TO_REG(_odr) \
@@ -100,13 +99,15 @@ enum lis2dh_odr {
/* Return ODR real value normalized to sensor capabilities */
#define LIS2DH_ODR_TO_NORMALIZE(_odr) \
- (_odr <= 1000) ? 1000 : (_odr <= 10000) ? 10000 : \
+ (_odr <= 1000) ? 1000 : \
+ (_odr <= 10000) ? 10000 : \
(25000 * (1 << (31 - __builtin_clz(_odr / 25000))))
/* Return ODR real value normalized to sensor capabilities from reg value */
#define LIS2DH_REG_TO_NORMALIZE(_reg) \
(_reg == LIS2DH_ODR_1HZ_VAL) ? 1000 : \
- (_reg == LIS2DH_ODR_10HZ_VAL) ? 10000 : (25000 * (1 << (_reg - 3)))
+ (_reg == LIS2DH_ODR_10HZ_VAL) ? 10000 : \
+ (25000 * (1 << (_reg - 3)))
/* Full scale range Mask register */
#define LIS2DH_FS_MASK 0x30
