diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-11-13 12:33:24 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-17 20:18:30 -0800 |
commit | f587852570770564e8a94b2c3f7ad7d97883c49a (patch) | |
tree | a7d78650875c700c3449268ed05330a11bea5eb6 /include/motion_sense.h | |
parent | ab2ce0a0ef38a701a9cc6622ccb41ba55d6b4984 (diff) | |
download | chrome-ec-f587852570770564e8a94b2c3f7ad7d97883c49a.tar.gz |
motion_sense: Put set_range in common code
At the end of the sensor initialization, all _init sensor routines set
the range to the default value from board.c file.
Put all the code in a single place, move it from sensor_common.c to
motion_sense.c.
BUG=none
BRANCH=none
TEST=compile
Change-Id: If89cf27c6438e0f215c193d68a480e027110174c
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/767610
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 478468022e..10ebfd05b3 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -193,13 +193,13 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data, #endif /** - * Take actions at end of sensor initialization (currently only printing - * init done status to console). + * Take actions at end of sensor initialization: + * - print init done status to console, + * - set default range. * * @param sensor sensor which was just initialized - * @param range range of sensor */ -void sensor_init_done(const struct motion_sensor_t *sensor, int range); +int sensor_init_done(const struct motion_sensor_t *sensor); /** * Board specific function that is called when a double_tap event is detected. |