summaryrefslogtreecommitdiff
path: root/common/motion_sense.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-10-16 11:06:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-16 14:46:20 -0700
commitfcfd32f04a58e1baf54b39d97c7b37eabb0770db (patch)
treea10241e77de8e11ac3b97528802e15d67211dfcc /common/motion_sense.c
parentf750ce8a18d90ff8116b1d6e37d5b12caf6bd2e4 (diff)
downloadchrome-ec-fcfd32f04a58e1baf54b39d97c7b37eabb0770db.tar.gz
motion: fix manage_activity interface
Declare optional parameters are const structure. These parameters, when used, are just read by the sensor driver. BRANCH=smaug BUG=None TEST=compile Change-Id: I8f2a9291e1908922831fb5e2a524bb6edd0e0f65 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306696 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/motion_sense.c')
-rw-r--r--common/motion_sense.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 2095882a6f..d6b94d0128 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -1119,7 +1119,7 @@ static int host_cmd_motion_sense(struct host_cmd_handler_args *args)
ret = sensor->drv->manage_activity(sensor,
in->set_activity.activity,
in->set_activity.enable,
- NULL);
+ &in->set_activity);
}
if (ret != EC_RES_SUCCESS)
return ret;