include/driver/mag_bmm150.h: Format with clang-format
BRANCH=none
TEST=none
*
* To be safe, declare only 75% of the value.
*/
-#define __BMM150_MAG_MAX_FREQ(_preset) (750000000 / \
+#define __BMM150_MAG_MAX_FREQ(_preset) \
+ (750000000 / \
(145 * BMM150_REP(_preset, XY) + 500 * BMM150_REP(_preset, Z) + 980))
#if (__BMM150_MAG_MAX_FREQ(SPECIAL) > CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ)
@@ -116,11 +117,9 @@ struct bmm150_private_data {
#ifdef CONFIG_MAG_BMI_BMM150
#include "accelgyro_bmi_common.h"
-#define BMM150_COMP_REG(_s) \
- (&BMI_GET_DATA(_s)->compass.comp)
+#define BMM150_COMP_REG(_s) (&BMI_GET_DATA(_s)->compass.comp)
-#define BMM150_CAL(_s) \
- (&BMI_GET_DATA(_s)->compass.cal)
+#define BMM150_CAL(_s) (&BMI_GET_DATA(_s)->compass.cal)
/*
* Behind a BMI, the BMM150 is in forced mode. Be sure to choose a frequency
* compatible with BMI.
@@ -137,14 +136,11 @@ struct bmm150_private_data {
int bmm150_init(struct motion_sensor_t *s);
/* Command to normalize and apply temperature compensation */
-void bmm150_normalize(const struct motion_sensor_t *s,
- intv3_t v,
+void bmm150_normalize(const struct motion_sensor_t *s, intv3_t v,
uint8_t *data);
-int bmm150_set_offset(const struct motion_sensor_t *s,
- const intv3_t offset);
+int bmm150_set_offset(const struct motion_sensor_t *s, const intv3_t offset);
-int bmm150_get_offset(const struct motion_sensor_t *s,
- intv3_t offset);
+int bmm150_get_offset(const struct motion_sensor_t *s, intv3_t offset);
#endif /* __CROS_EC_MAG_BMM150_H */
