summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/als_tcs3400.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver/als_tcs3400.c b/driver/als_tcs3400.c
index 925c192ba1..b047cf5057 100644
--- a/driver/als_tcs3400.c
+++ b/driver/als_tcs3400.c
@@ -589,11 +589,6 @@ static int tcs3400_rgb_set_offset(const struct motion_sensor_t *s,
return EC_SUCCESS;
}
-static int tcs3400_rgb_get_data_rate(const struct motion_sensor_t *s)
-{
- return 0;
-}
-
static int tcs3400_rgb_set_data_rate(const struct motion_sensor_t *s,
int rate,
int rnd)
@@ -670,6 +665,11 @@ static int tcs3400_get_data_rate(const struct motion_sensor_t *s)
return TCS3400_DRV_DATA(s)->rate;
}
+static int tcs3400_rgb_get_data_rate(const struct motion_sensor_t *s)
+{
+ return tcs3400_get_data_rate(s - 1);
+}
+
static int tcs3400_set_data_rate(const struct motion_sensor_t *s,
int rate,
int rnd)