summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2022-05-09 16:27:46 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-10 00:12:32 +0000
commit7b149f78accdb0c287753d305f2f5b56128fbd39 (patch)
tree0d33152501f9810aeb2f77afe2563463b8b29b4e
parent28c0e2d4e0711b35571cca79c7b1c05fbb3edbb0 (diff)
downloadchrome-ec-7b149f78accdb0c287753d305f2f5b56128fbd39.tar.gz
zephyr: test: run clang-format on motion_sense.c
BRANCH=none BUG=none TEST=zmake build test-drivers Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Ie84e5611ce7e3ceff58fbf7b007643c166177a24 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3636016 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--zephyr/test/drivers/src/host_cmd/motion_sense.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zephyr/test/drivers/src/host_cmd/motion_sense.c b/zephyr/test/drivers/src/host_cmd/motion_sense.c
index c5f946ded7..1af5923bed 100644
--- a/zephyr/test/drivers/src/host_cmd/motion_sense.c
+++ b/zephyr/test/drivers/src/host_cmd/motion_sense.c
@@ -32,8 +32,7 @@ FAKE_VALUE_FUNC(int, mock_perform_calib, struct motion_sensor_t *, int);
n * sizeof(struct ec_response_motion_sensor_data))
#define RESPONSE_SENSOR_FIFO_SIZE(n) \
- (sizeof(struct ec_response_motion_sense) + \
- n * sizeof(uint16_t))
+ (sizeof(struct ec_response_motion_sense) + n * sizeof(uint16_t))
struct host_cmd_motion_sense_fixture {
const struct accelgyro_drv *sensor_0_drv;
@@ -662,8 +661,7 @@ ZTEST(host_cmd_motion_sense, test_fifo_flush)
(struct ec_response_motion_sense *)response_buffer;
motion_sensors[0].lost = 5;
- zassert_ok(host_cmd_motion_sense_fifo_flush(/*sensor_num=*/0,
- response),
+ zassert_ok(host_cmd_motion_sense_fifo_flush(/*sensor_num=*/0, response),
NULL);
zassert_equal(1, motion_sensors[0].flush_pending, NULL);
zassert_equal(5, response->fifo_info.lost[0], NULL);