drivers:iio:stm:pressure:st_lps22df: adjust temp scale for milli C

Gain must be multiplied by a thousand to have a temperature
expressed in milli celsius.

Signed-off-by: Mario Tesi <mario.tesi@st.com>
Change-Id: I88f1b862827b4d87aa34c50e1f407dd1383ab7d2
Reviewed-on: https://gerrit.st.com/c/linuxandroidopen/stm-ldd-iio/+/272664
Tested-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Denis CIOCCA <denis.ciocca@st.com>
This commit is contained in:
Mario Tesi 2022-10-25 12:44:45 +02:00 committed by Denis CIOCCA
parent fd85b1f8a7
commit 2f94f4b3fb

View File

@ -60,7 +60,7 @@
#define ST_LPS22DF_FIFO_DATA_OUT_PRESS_XL_ADDR 0x78
#define ST_LPS22DF_PRESS_FS_AVL_GAIN (1000000000UL / 4096UL)
#define ST_LPS22DF_TEMP_FS_AVL_GAIN (1000000000UL / 100UL)
#define ST_LPS22DF_TEMP_FS_AVL_GAIN 100
#define ST_LPS22DF_ODR_LIST_NUM 9