summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@st.com>2019-06-19 15:03:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-19 09:09:40 +0200
commit0ae0c43abcbfa957219e4d3c6e808459c0e681b7 (patch)
treee2b7769708093251ba9c9f26dbd5226ce0b6afea /kernel
parentacf77c411b4e26847deea53d60e9af38699d9d49 (diff)
iio: adc: stm32-dfsdm: fix data type
commit c6013bf50e2a2a94ab3d012e191096432aa50c6f upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions