From 01fd86385bdcf633db0acd91b5f60733097a84a3 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Thu, 30 May 2019 12:02:10 -0600 Subject: common: motion_sense: Require CONFIG_MOTION_SENSOR_MAX_COUNT This changes requires all boards to define the maximum number of sensors they support. This will allow us to later create static arrays with the appropriate length. BUG=chromium:966506 BRANCH=None TEST=make buildall Change-Id: I5a2fa8f0fdcaef69065dfd4c2bfea4e3f371e986 Signed-off-by: Yuval Peress Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1637414 Reviewed-by: Jett Rink --- baseboard/grunt/baseboard.h | 1 + baseboard/zork/baseboard.h | 1 + 2 files changed, 2 insertions(+) (limited to 'baseboard') diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index 8dc4a98c01..89345b09f9 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -219,6 +219,7 @@ enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO, + SENSOR_COUNT, }; /* diff --git a/baseboard/zork/baseboard.h b/baseboard/zork/baseboard.h index 2320450b75..bba818aabf 100644 --- a/baseboard/zork/baseboard.h +++ b/baseboard/zork/baseboard.h @@ -219,6 +219,7 @@ enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO, + SENSOR_COUNT, }; /* -- cgit v1.2.1