driver/accelgyro_icm426xx.h: Format with clang-format
BRANCH=none
TEST=none
#define ICM426XX_GYRO_STOP_TIME 150000
/* Reg value from Accel FS in G */
-#define ICM426XX_ACCEL_FS_TO_REG(_fs) ((_fs) < 2 ? 3 : \
- (_fs) > 16 ? 0 : \
- 3 - __fls((_fs) / 2))
+#define ICM426XX_ACCEL_FS_TO_REG(_fs) \
+ ((_fs) < 2 ? 3 : (_fs) > 16 ? 0 : 3 - __fls((_fs) / 2))
/* Accel FSR in G from Reg value */
#define ICM426XX_ACCEL_REG_TO_FS(_reg) ((1 << (3 - (_reg))) * 2)
/* Reg value from Gyro FS in dps */
-#define ICM426XX_GYRO_FS_TO_REG(_fs) ((_fs) < 125 ? 4 : \
- (_fs) > 2000 ? 0 : \
- 4 - __fls((_fs) / 125))
+#define ICM426XX_GYRO_FS_TO_REG(_fs) \
+ ((_fs) < 125 ? 4 : (_fs) > 2000 ? 0 : 4 - __fls((_fs) / 125))
/* Gyro FSR in dps from Reg value */
#define ICM426XX_GYRO_REG_TO_FS(_reg) ((1 << (4 - (_reg))) * 125)
/* Reg value from ODR in mHz */
-#define ICM426XX_ODR_TO_REG(_odr) ((_odr) <= 200000 ? \
- 13 - __fls((_odr) / 3125) : \
+#define ICM426XX_ODR_TO_REG(_odr) \
+ ((_odr) <= 200000 ? 13 - __fls((_odr) / 3125) : \
(_odr) < 500000 ? 7 : \
(_odr) < 1000000 ? 15 : \
6 - __fls((_odr) / 1000000))
/* ODR in mHz from Reg value */
-#define ICM426XX_REG_TO_ODR(_reg) ((_reg) == 15 ? 500000 : \
- (_reg) >= 7 ? \
- (1 << (13 - (_reg))) * 3125 : \
+#define ICM426XX_REG_TO_ODR(_reg) \
+ ((_reg) == 15 ? 500000 : \
+ (_reg) >= 7 ? (1 << (13 - (_reg))) * 3125 : \
(1 << (6 - (_reg))) * 1000000)
/* Reg value for the next higher ODR */
-#define ICM426XX_ODR_REG_UP(_reg) ((_reg) == 15 ? 6 : \
- (_reg) == 7 ? 15 : \
- (_reg) - 1)
+#define ICM426XX_ODR_REG_UP(_reg) \
+ ((_reg) == 15 ? 6 : (_reg) == 7 ? 15 : (_reg)-1)
/*
* Register addresses are virtual address on 16 bits.
