linux/drivers/staging
Alexandru Ardelean 17395ce299 iio: make use of devm_iio_kfifo_buffer_setup() helper
All drivers that already call devm_iio_kfifo_allocate() &
iio_device_attach_buffer() are simple to convert to
iio_device_attach_kfifo_buffer() in a single go.

This change does that; the unwind order is preserved.
What is important, is that the devm_iio_kfifo_buffer_setup() be called
after the indio_dev->modes is assigned, to make sure that
INDIO_BUFFER_SOFTWARE flag is set and not overridden by the assignment to
indio_dev->modes.

Also, the INDIO_BUFFER_SOFTWARE has been removed from the assignments of
'indio_dev->modes' because it is set by devm_iio_kfifo_buffer_setup().

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>x
Link: https://lore.kernel.org/r/20210215104043.91251-4-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-03-11 20:47:01 +00:00
..
android staging: android: Remove filename reference from file 2021-03-10 09:25:28 +01:00
axis-fifo
board Revert "staging: board: Remove macro board_staging" 2021-01-04 15:55:40 +01:00
clocking-wizard staging: clocking-wizard: Remove the hardcoding of the clock outputs 2021-03-10 09:25:30 +01:00
comedi staging: comedi: dt2814: Clear stale AI data on detach 2021-03-10 09:25:31 +01:00
emxx_udc staging: emxx_udc: remove unused variable driver_desc 2021-03-10 09:25:25 +01:00
fbtft staging: fbtft: add tearing signal detect 2021-02-12 09:48:29 +01:00
fieldbus staging: fieldbus: arcx-anybus: constify static structs 2021-02-08 15:22:34 +01:00
fsl-dpaa2 Staging/IIO driver patches for 5.12-rc1 2021-02-20 21:36:51 -08:00
fwserial staging: fwserial: minor coding style fix 2021-03-10 09:25:31 +01:00
gasket staging: gasket: removed unnecessary debug message to fix coding style warning 2021-03-10 09:25:27 +01:00
gdm724x staging: gdm724x: Fix DMA from stack 2021-02-11 11:08:17 +01:00
greybus staging/greybus: eliminate use of NAME_SIZE for strings 2021-03-10 09:25:33 +01:00
gs_fpgaboot staging: Replace HTTP links with HTTPS ones 2020-07-20 10:22:47 +02:00
hikey9xx staging: hikey9xx: fix warning styling issues 2021-03-10 09:25:26 +01:00
iio iio: make use of devm_iio_kfifo_buffer_setup() helper 2021-03-11 20:47:01 +00:00
kpc2000 staging: kpc2000: code style: fix line length issue 2021-03-10 09:25:28 +01:00
ks7010 staging: ks7010: fix missing destroy_workqueue() on error in ks7010_sdio_probe 2020-11-06 11:02:53 +01:00
media Simple Firmware Interface (SFI) support removal for v5.12-rc1 2021-02-24 10:35:29 -08:00
most staging: most: Switch from strlcpy to strscpy 2021-02-04 17:16:06 +01:00
mt7621-dma staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c 2021-01-31 13:39:53 +01:00
mt7621-dts staging: mt7621-dts: remove obsolete switch node 2021-01-26 18:46:35 +01:00
mt7621-pci Staging: mt7621-pci: fixed a blank line coding style issue 2021-03-10 09:25:24 +01:00
netlogic staging: netlogic: clear alignment style issues 2020-08-02 12:47:37 +02:00
nvec staging: nvec: minor coding style fix 2021-02-12 09:49:43 +01:00
octeon staging: octeon: cleanup unnecessary parentheses in ethernet-spmi.c 2021-03-10 09:25:26 +01:00
octeon-usb drivers: staging: octeon-usb: fixed codestyle check warning 2020-09-13 09:21:15 +02:00
olpc_dcon staging: olpc_dcon: Switch from strlcpy to strscpy 2021-02-04 17:16:06 +01:00
pi433 staging: pi433: break long lines 2020-09-04 15:39:07 +02:00
qlge staging: qlge: fix comment style in qlge_main.c 2021-03-10 09:25:25 +01:00
ralink-gdma staging: ralink-gdma: Check return code of device_reset 2021-03-10 09:25:33 +01:00
rtl8188eu staging: rtl8188eu: Replace one-element array with flexible-array in struct ndis_802_11_var_ie 2021-03-10 09:25:33 +01:00
rtl8192e staging: rtl8192e: remove redundant variable shadowing 2021-03-10 09:25:33 +01:00
rtl8192u staging: rt8192u: Move constant in comparison to the RHS 2021-03-10 09:25:28 +01:00
rtl8712 staging:rtl8712: replace cap_* definitions with native kernel WLAN_CAPABILITY_* 2021-03-10 09:25:31 +01:00
rtl8723bs staging: HalBtc8723b1Ant: remove useless typedef's 2021-03-10 09:25:33 +01:00
rts5208 staging: rts5208: rtsx_transport.c: Fix lines ending with parentheses 2020-09-13 09:20:31 +02:00
sm750fb staging: sm750fb: added identifier names for function declarations 2021-03-10 09:25:26 +01:00
unisys staging: unisys: visornic: Fix repeated words in comments 2021-03-10 09:25:33 +01:00
vc04_services staging: vc04_services: vchiq_arm: fix error return code of vchiq_release_internal() and vchiq_use_internal() 2021-03-10 09:25:33 +01:00
vme Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-02-27 08:07:12 -08:00
vt6655 Staging: vt6655: Replace a camel case variable name 2021-02-11 12:13:53 +01:00
vt6656 staging: vt6656: Fix alignment of function args 2021-03-10 09:25:25 +01:00
wfx staging: wfx: Fix alignment style issue in sta.c 2021-03-10 09:25:24 +01:00
wimax staging: wimax: i2400m: fix some incorrect type warnings 2021-03-10 09:25:33 +01:00
wlan-ng staging: wlan-ng: Remove unused function pointer typedef freebuf_method_t 2021-03-10 09:25:24 +01:00
Kconfig Staging / IIO driver patches for 5.11-rc1 2020-12-15 14:18:40 -08:00
Makefile Staging / IIO driver patches for 5.11-rc1 2020-12-15 14:18:40 -08:00