OpenCloudOS-Kernel/drivers/iio
Lars-Peter Clausen 5d65d92045 iio: iio_push_to_buffers(): Change type of 'data' to const void *
Change the type of the 'data' parameter for iio_push_to_buffers() from 'u8 *' to
'const void *'. Drivers typically use the correct type (e.g. __be16 *) for their
data buffer. When passing the buffer to iio_push_to_buffers() it needs to be
cast to 'u8 *' for the compiler to not complain (and also having to add __force
if we want to keep sparse happy as well). Since the buffer implementation should
not care about the data layout (except the size of one sample) using a void
pointer is the correct thing to do. Also make it const as the buffer
implementations are not supposed to modify it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-09-15 19:02:07 +01:00
..
accel iio: add Bosch BMA180 acceleration sensor driver 2013-08-28 20:12:22 +01:00
adc iio: adc: Add driver for Microchip MCP3422/3/4 high resolution ADC 2013-09-07 22:17:44 +01:00
amplifiers iio: amplifiers: ad8366: Use devm_* APIs 2013-08-03 21:00:15 +01:00
common iio: sensors-core: st: Clean-up error handling in st_sensors_read_info_raw() 2013-09-14 21:17:16 +01:00
dac iio: refactor info mask and ext_info attribute creation. 2013-09-15 17:43:20 +01:00
frequency iio: refactor info mask and ext_info attribute creation. 2013-09-15 17:43:20 +01:00
gyro iio: gyro: adxrs450: Remove redundant break 2013-09-14 11:37:01 +01:00
imu iio: imu: inv_mpu6050: Use devm_iio_device_alloc 2013-08-03 18:55:24 +01:00
light iio: Fix tcs3472 buffer size 2013-09-15 17:53:56 +01:00
magnetometer iio: Remove unnecessary _write_raw_get_fmt() in several hid-sensor drivers 2013-08-19 20:01:25 +01:00
pressure iio: pressure-core: st: Allow for number of channels to vary 2013-09-14 21:17:17 +01:00
temperature iio:temperature:tmp006 put sampling_frequency in info_mask_shared_by_all 2013-09-15 17:47:38 +01:00
trigger iio: Add a comment to about alphabetical order to Kconfigs and Makefiles 2013-08-03 18:40:36 +01:00
Kconfig iio: Add tmp006 IR temperature sensor 2013-08-17 15:50:53 +01:00
Makefile iio: Restore alphabetic order in Makefile 2013-08-17 15:50:54 +01:00
buffer_cb.c iio: iio_push_to_buffers(): Change type of 'data' to const void * 2013-09-15 19:02:07 +01:00
iio_core.h iio: refactor info mask and ext_info attribute creation. 2013-09-15 17:43:20 +01:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
industrialio-buffer.c iio: iio_push_to_buffers(): Change type of 'data' to const void * 2013-09-15 19:02:07 +01:00
industrialio-core.c iio: add info_mask_[shared_by_dir/shared_by_all] 2013-09-15 17:45:49 +01:00
industrialio-event.c iio: use anon_inode_getfd() with O_CLOEXEC flag 2013-09-15 17:27:15 +01:00
industrialio-trigger.c iio: trigger: implement devm_iio_trigger_alloc/devm_iio_triger_free 2013-08-17 19:34:52 +01:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c iio: inkern: fix iio_convert_raw_to_processed_unlocked 2013-07-03 20:30:52 +01:00
kfifo_buf.c iio: iio_push_to_buffers(): Change type of 'data' to const void * 2013-09-15 19:02:07 +01:00