linux/drivers/iio
Lars-Peter Clausen 248be5aafc iio: __iio_update_buffers: Slightly refactor scan mask memory management
Add a small helper function iio_free_scan_mask() that takes a mask and
frees its memory if the scan masks for the device are dynamically
allocated, otherwise does nothing. This means we don't have to open-code
the same check over and over again in __iio_update_buffers.

Also free compound_mask as soon a we are done using it. This constrains its
usage to a specific region of the function will make further refactoring
and splitting the function into smaller sub-parts more easier.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-17 09:45:22 +01:00
..
accel iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() 2015-05-17 09:09:05 +01:00
adc iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT parameters 2015-05-13 18:37:22 +01:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common First round of new drivers, functionality and cleanups for the 4.2 cycle 2015-05-09 18:15:50 +02:00
dac iio: add m62332 DAC driver 2015-05-17 09:37:45 +01:00
frequency iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom 2015-01-01 12:18:26 +00:00
gyro iio: gyro: hid-sensor-gyro-3d: Fix memory leak in probe() 2015-05-17 09:09:49 +01:00
humidity iio: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-10 20:31:43 +01:00
imu Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
light iio: ltr501: Add light channel support 2015-05-17 09:14:10 +01:00
magnetometer iio: hid-sensor-magn-3d: Constify platform_device_id 2015-05-10 20:31:47 +01:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
pressure iio: pressure: hid-sensor-press: Fix memory leak in probe() 2015-05-17 09:10:33 +01:00
proximity iio:prox:sx9500 trivial simplification of return path in init function. 2015-05-07 10:42:31 +01:00
temperature iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw. 2015-05-13 18:40:31 +01:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: __iio_update_buffers: Slightly refactor scan mask memory management 2015-05-17 09:45:22 +01:00
industrialio-core.c iio: core: Introduce IIO_CHAN_INFO_OVERSAMPLING_RATIO 2015-05-10 20:31:44 +01:00
industrialio-event.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio: kfifo: Remove unused argument in iio_kfifo_allocate 2014-12-26 11:20:38 +00:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c iio: add watermark logic to iio read and poll 2015-03-29 16:17:09 +01:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00