summaryrefslogtreecommitdiff
path: root/include/accelgyro.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-08-25 18:22:24 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-08-29 00:04:15 -0700
commit7a2299163b7769b546db53c0dd225eee9e0a0df1 (patch)
tree6fed3596ec94354b08d85ce2b65621aedd2794e2 /include/accelgyro.h
parent252dce9bd3d70b09e33aba17580ad11d1203ee73 (diff)
downloadchrome-ec-7a2299163b7769b546db53c0dd225eee9e0a0df1.tar.gz
driver: change get_ interface.
Simplify sensor get_data_rate, get_range and get_resolution. Error code was not checked and these functions as currently implemented have no reason to fail. BRANCH=ryu,samus,cyan,strago BUG=chromium:513458 TEST=Check on ryu, compile Change-Id: I40dca41cee29a19f65b2f84d434b4c19eb6cbf3c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/295635 Reviewed-by: Sheng-liang Song <ssl@chromium.org>
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r--include/accelgyro.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index f4cb542dc6..c65e624bf4 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -45,8 +45,7 @@ struct accelgyro_drv {
int (*set_range)(const struct motion_sensor_t *s,
int range,
int rnd);
- int (*get_range)(const struct motion_sensor_t *s,
- int *range);
+ int (*get_range)(const struct motion_sensor_t *s);
/**
* Setter and getter methods for the sensor resolution.
@@ -59,8 +58,7 @@ struct accelgyro_drv {
int (*set_resolution)(const struct motion_sensor_t *s,
int res,
int rnd);
- int (*get_resolution)(const struct motion_sensor_t *s,
- int *res);
+ int (*get_resolution)(const struct motion_sensor_t *s);
/**
* Setter and getter methods for the sensor output data range. As the
@@ -74,8 +72,7 @@ struct accelgyro_drv {
int (*set_data_rate)(const struct motion_sensor_t *s,
int rate,
int rnd);
- int (*get_data_rate)(const struct motion_sensor_t *s,
- int *rate);
+ int (*get_data_rate)(const struct motion_sensor_t *s);
/**