commit | c3050a5aab1e86d02642eb4c6a027419e6a3a096 | [log] [tgz] |
---|---|---|
author | Armando Visconti <armando.visconti@st.com> | Fri Sep 03 18:17:05 2021 +0200 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Mon Sep 06 03:31:50 2021 -0400 |
tree | 42d10c1d34496579a0f7df963e4e71c696f15c36 | |
parent | 559135721732eac1180885def818cc1d3d65d0b9 [diff] |
drivers/sensor: lps22hh: Fix int32 overflow in the val2 part The val2 calculation was done using (1000000 / 40960) as multiplying factor, which was sometimes leading to a int32 overflow. So, let's use the equivalent (but smaller) (3125 / 128). Fix #38090 Signed-off-by: Armando Visconti <armando.visconti@st.com>