diff options
| author | sravanM <Sravan@mindtribe.com> | 2016-02-05 14:28:25 -0800 |
|---|---|---|
| committer | Evan Wilson <evan@oliodevices.com> | 2016-03-18 13:35:48 -0700 |
| commit | 816e93427dcca7eca8381a5807a4b53e029b6e2d (patch) | |
| tree | 02d7b6b2ed18aa1200a3057df1050dacf5921cba | |
| parent | acc5f0dff67ab579b200e2158caeede7f36829c2 (diff) | |
| download | olio-linux-3.10-816e93427dcca7eca8381a5807a4b53e029b6e2d.tar.xz olio-linux-3.10-816e93427dcca7eca8381a5807a4b53e029b6e2d.zip | |
fixing multiplication
Change-Id: Ic8cae3cbca1805bab1bca40bf993e5289c70791d
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 df19c4e08d3..00948755125 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); |