linux_dsm_epyc7002/drivers/iio
Olivier Moysan 12c8398d80 iio: adc: stm32-dfsdm: fix output resolution
In buffered mode, output samples are shifted left
unconditionally. This works for filter order 3,
but this shift is not adapted for other filter orders.
Compute required shift, left or right, and shift
output data accordingly.
Add also saturation management to avoid wrap-around
when maximum positive sample is reached.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Fixes: eca949800d ("IIO: ADC: add stm32 DFSDM support for PDM microphone")
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-06-22 10:18:51 +01:00
..
accel iio: sca3000: Potential endian bug in sca3000_read_event_value() 2019-06-22 09:40:36 +01:00
adc iio: adc: stm32-dfsdm: fix output resolution 2019-06-22 10:18:51 +01:00
afe iio: afe: rescale: new driver 2018-04-28 18:03:22 +01:00
amplifiers iio: amplifiers: ad8366: Add support for ADL5240 VGA 2019-06-17 21:06:48 +01:00
buffer iio: buffer: Switch to bitmap_zalloc() 2019-04-04 20:19:51 +01:00
chemical Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
common iio: cros_ec: add 'id' sysfs entry 2019-04-27 14:11:59 +01:00
dac iio: dac: ds4422/ds4424 drop of_node check 2019-05-11 12:19:35 +01:00
dummy iio: dummy_evgen: fix possible memleak in evgen init 2019-04-22 11:45:03 +01:00
frequency iio: frequency: adf4371: Add support for ADF4371 PLL 2019-06-17 21:06:45 +01:00
gyro Second set of IIO new device support, features and cleanup for the 5.2 cycle. 2019-04-25 10:50:51 +02:00
health iio: health: max30102: Mark expected switch fall-throughs 2018-08-19 17:21:35 +01:00
humidity iio: humidity: Replace older GPIO APIs with GPIO Consumer APIs for the dht11 sensor 2019-06-17 21:06:49 +01:00
imu iio: imu: st_lsm6dsx: get device name from st_lsm6dsx_sensor_settings 2019-06-17 21:06:45 +01:00
light iio: light: stk3310: Add support for stk3335 2019-06-17 21:06:44 +01:00
magnetometer iio: hmc5843: fix potential NULL pointer dereferences 2019-04-04 20:20:14 +01:00
multiplexer iio: multiplexer: switch to SPDX license identifier 2018-08-20 19:28:26 +01:00
orientation iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
potentiometer drivers: iio: Kconfig: pedantic cleanup 2019-04-04 20:19:56 +01:00
potentiostat iio:potentiostat:lmp91000: change dev_err message 2019-04-04 20:19:55 +01:00
pressure iio: dps310: Add pressure sensing capability 2019-06-08 12:33:32 +01:00
proximity Kconfig: change configuration of srf04 ultrasonic iio sensor 2019-04-14 14:08:48 +01:00
resolver staging:iio:ad2s90: Move out of staging 2018-12-01 15:40:39 +00:00
temperature iio: temperature: maxim_thermocouple: declare missing of table 2019-04-27 13:54:40 +01:00
trigger iio: remove redundant unlikely annotation 2019-04-04 20:19:40 +01:00
iio_core_trigger.h
iio_core.h the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
industrialio-buffer.c Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
industrialio-configfs.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-core.c iio:core: Fix bug in length of event info_mask and catch unhandled bits set in masks. 2019-06-17 21:06:44 +01:00
industrialio-event.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
industrialio-sw-device.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-sw-trigger.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-trigger.c iio: trigger: Print an error if there is no available irq 2019-04-04 20:19:41 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c iio: inkern: Convert iio_read_avail_channel_raw into a wrapper 2019-04-14 11:32:20 +01:00
Kconfig Staging / IIO driver patches for 5.2-rc1 2019-05-07 13:31:29 -07:00
Makefile counter: stm32-lptimer: add counter device 2019-04-25 21:33:41 +02:00