diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-06-30 06:26:31 (GMT) |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-06-30 06:26:31 (GMT) |
commit | 78278fb152735c686cb13e1ae3bcee78fc2cd154 (patch) | |
tree | ed3f669fbb4422bf3dfaa6b20ea992c04c1eac01 /drivers/staging/iio/light/tsl2x7x_core.c | |
parent | 084eedbddaa526f53b20291ee7176be269620301 (diff) | |
parent | 92905e331aea278665c4b27fbb13c4547a8bcbb0 (diff) | |
download | linux-78278fb152735c686cb13e1ae3bcee78fc2cd154.tar.xz |
Merge tag 'v4.9.35' into linux-linaro-lsk-v4.9
This is the 4.9.35 stable release
Diffstat (limited to 'drivers/staging/iio/light/tsl2x7x_core.c')
-rw-r--r-- | drivers/staging/iio/light/tsl2x7x_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c index ea15bc1..197201a 100644 --- a/drivers/staging/iio/light/tsl2x7x_core.c +++ b/drivers/staging/iio/light/tsl2x7x_core.c @@ -854,7 +854,7 @@ void tsl2x7x_prox_calculate(int *data, int length, tmp = data[i] - statP->mean; sample_sum += tmp * tmp; } - statP->stddev = int_sqrt((long)sample_sum) / length; + statP->stddev = int_sqrt((long)sample_sum / length); } /** |