aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-02-15 12:40:22 +0200
committerJonathan Cameron <[email protected]>2021-03-11 20:47:01 +0000
commit17395ce299211a8148ee45d1d71eb740a3fec48d (patch)
tree346506947f6d454f70efe6370b561506614d75d3 /tools/perf/scripts/python/exported-sql-viewer.py
parente36db6a06937c6fce3291f0c362d4f757b8ec703 (diff)
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 <[email protected]> Reviewed-by: Gwendal Grignou <[email protected]> Reviewed-by: Matt Ranostay <[email protected]>x Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions