include/accelgyro.h: Format with clang-format
BRANCH=none
TEST=none
@@ -60,9 +60,7 @@ struct accelgyro_drv {
*
* @return EC_SUCCESS if successful, non-zero if error.
*/
- int (*set_range)(struct motion_sensor_t *s,
- int range,
- int rnd);
+ int (*set_range)(struct motion_sensor_t *s, int range, int rnd);
/**
* Setter and getter methods for the sensor resolution.
@@ -72,8 +70,7 @@ struct accelgyro_drv {
* value. Otherwise, it rounds down.
* @return EC_SUCCESS if successful, non-zero if error.
*/
- int (*set_resolution)(const struct motion_sensor_t *s,
- int res,
+ int (*set_resolution)(const struct motion_sensor_t *s, int res,
int rnd);
int (*get_resolution)(const struct motion_sensor_t *s);
@@ -86,12 +83,10 @@ struct accelgyro_drv {
* value. Otherwise, it rounds down.
* @return EC_SUCCESS if successful, non-zero if error.
*/
- int (*set_data_rate)(const struct motion_sensor_t *s,
- int rate,
+ int (*set_data_rate)(const struct motion_sensor_t *s, int rate,
int rnd);
int (*get_data_rate)(const struct motion_sensor_t *s);
-
/**
* Setter and getter methods for the sensor offset.
* @s Pointer to sensor data.
@@ -100,10 +95,8 @@ struct accelgyro_drv {
* @return EC_SUCCESS if successful, non-zero if error.
*/
int (*set_offset)(const struct motion_sensor_t *s,
- const int16_t *offset,
- int16_t temp);
- int (*get_offset)(const struct motion_sensor_t *s,
- int16_t *offset,
+ const int16_t *offset, int16_t temp);
+ int (*get_offset)(const struct motion_sensor_t *s, int16_t *offset,
int16_t *temp);
/**
* Setter and getter methods for the sensor scale.
@@ -112,19 +105,16 @@ struct accelgyro_drv {
* @temp: temperature when calibration was done.
* @return EC_SUCCESS if successful, non-zero if error.
*/
- int (*set_scale)(const struct motion_sensor_t *s,
- const uint16_t *scale,
+ int (*set_scale)(const struct motion_sensor_t *s, const uint16_t *scale,
int16_t temp);
- int (*get_scale)(const struct motion_sensor_t *s,
- uint16_t *scale,
+ int (*get_scale)(const struct motion_sensor_t *s, uint16_t *scale,
int16_t *temp);
/**
* Request performing/entering calibration.
* Either a one shot mode (enable is not used),
* or enter/exit a calibration state.
*/
- int (*perform_calib)(struct motion_sensor_t *s,
- int enable);
+ int (*perform_calib)(struct motion_sensor_t *s, int enable);
/**
* Function that probes if supported chip is present.
@@ -161,8 +151,7 @@ struct accelgyro_drv {
* @data additional data if needed, activity dependent.
*/
int (*manage_activity)(const struct motion_sensor_t *s,
- enum motionsensor_activity activity,
- int enable,
+ enum motionsensor_activity activity, int enable,
const struct ec_motion_sense_activity *data);
/**
* List activities managed by the sensors.
@@ -171,8 +160,7 @@ struct accelgyro_drv {
* @disabled bit mask of activities currently disabled.
*/
int (*list_activities)(const struct motion_sensor_t *s,
- uint32_t *enabled,
- uint32_t *disabled);
+ uint32_t *enabled, uint32_t *disabled);
/**
* Get the root mean square of current noise (ug/mdps) in the sensor.
