summaryrefslogtreecommitdiff
path: root/board/copano
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 13:27:41 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 13:58:37 +0000
commit61897d41f2fe47d7b4d8dfb6ec95692b56ce2a0f (patch)
tree166f535856788dc6b21bbff8a494a7c95970aae6 /board/copano
parentdb0b1d0cac3cd3da888a172c33a3becfbfcac691 (diff)
downloadchrome-ec-61897d41f2fe47d7b4d8dfb6ec95692b56ce2a0f.tar.gz
board/copano/sensors.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I3c4567387e5a339b95c25eb8126b021e758e75ec Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728156 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/copano')
-rw-r--r--board/copano/sensors.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/board/copano/sensors.c b/board/copano/sensors.c
index 8aa9f5888b..8b0da8b67a 100644
--- a/board/copano/sensors.c
+++ b/board/copano/sensors.c
@@ -36,22 +36,18 @@ static struct bmi_drv_data_t g_bmi160_data;
static struct icm_drv_data_t g_icm426xx_data;
/* Rotation matrix for the lid accelerometer */
-static const mat33_fp_t lid_standard_ref = {
- { FLOAT_TO_FP(-1), 0, 0},
- { 0, FLOAT_TO_FP(1), 0},
- { 0, 0, FLOAT_TO_FP(-1)}
-};
+static const mat33_fp_t lid_standard_ref = { { FLOAT_TO_FP(-1), 0, 0 },
+ { 0, FLOAT_TO_FP(1), 0 },
+ { 0, 0, FLOAT_TO_FP(-1) } };
-const mat33_fp_t base_standard_ref = {
- { FLOAT_TO_FP(1), 0, 0},
- { 0, FLOAT_TO_FP(-1), 0},
- { 0, 0, FLOAT_TO_FP(-1)}
-};
+const mat33_fp_t base_standard_ref = { { FLOAT_TO_FP(1), 0, 0 },
+ { 0, FLOAT_TO_FP(-1), 0 },
+ { 0, 0, FLOAT_TO_FP(-1) } };
const mat33_fp_t base_standard_ref_icm = {
- { 0, FLOAT_TO_FP(1), 0},
- { FLOAT_TO_FP(1), 0, 0},
- { 0, 0, FLOAT_TO_FP(-1)},
+ { 0, FLOAT_TO_FP(1), 0 },
+ { FLOAT_TO_FP(1), 0, 0 },
+ { 0, 0, FLOAT_TO_FP(-1) },
};
struct motion_sensor_t icm426xx_base_accel = {