diff options
| author | sravanM <Sravan@mindtribe.com> | 2016-02-05 14:28:25 -0800 |
|---|---|---|
| committer | Evan Wilson <evan@oliodevices.com> | 2016-02-05 17:19:14 -0800 |
| commit | e36446b28f9cd527e0a86db588c93a6440aa354e (patch) | |
| tree | 432e078bab554dcce939a4136c511da4bc969ea1 | |
| parent | 704843db763027e27a19d44cd225236ee77163fe (diff) | |
| download | olio-linux-3.10-e36446b28f9cd527e0a86db588c93a6440aa354e.tar.xz olio-linux-3.10-e36446b28f9cd527e0a86db588c93a6440aa354e.zip | |
fixing multiplication
Change-Id: Ifb6ffdc63a3d26db7c87c90c30645791a58e2f32
Signed-off-by: Evan Wilson <evan@oliodevices.com>
| -rw-r--r-- | drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c index ac126735805..20fed875f3b 100644 --- a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c +++ b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c @@ -802,8 +802,8 @@ int st_lsm6ds3_set_fifo_decimators_and_threshold(struct lsm6ds3_data *cdata) if (fifo_len > 0) { fifo_threshold = fifo_len / 2; - if(fifo_threshold > cdata->min_latency_samples) - fifo_threshold = cdata->min_latency_samples; + if(fifo_threshold > cdata->min_latency_samples * ST_LSM6DS3_FIFO_ELEMENT_LEN_BYTE) + fifo_threshold = cdata->min_latency_samples * ST_LSM6DS3_FIFO_ELEMENT_LEN_BYTE; dev_info(cdata->dev,"setting FIFO length/threshold: 0x%x 0x%x ", fifo_len, fifo_threshold); |