diff options
author | 2019-06-19 15:03:48 +0200 | |
---|---|---|
committer | 2019-06-22 10:20:21 +0100 | |
commit | c6013bf50e2a2a94ab3d012e191096432aa50c6f (patch) | |
tree | 398ec109faa09a80c35e3c3de05233be53b26738 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | iio: adc: stm32-dfsdm: fix output resolution (diff) | |
download | linux-dev-c6013bf50e2a2a94ab3d012e191096432aa50c6f.tar.xz linux-dev-c6013bf50e2a2a94ab3d012e191096432aa50c6f.zip |
iio: adc: stm32-dfsdm: fix data type
Fix the data type as DFSDM raw output is complements 2,
24bits left aligned in a 32-bit register.
This change does not affect AUDIO path
- Set data as signed for IIO (as for AUDIO)
- Set 8 bit right shift for IIO.
The 8 LSBs bits of data contains channel info and are masked.
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support")
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions