]> git.karo-electronics.de Git - linux-beck.git/commit
iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and...
authorDenis CIOCCA <denis.ciocca@st.com>
Mon, 3 Jun 2013 14:58:00 +0000 (15:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 5 Jun 2013 17:41:23 +0000 (18:41 +0100)
commit607a568ab69c5ac345a286267a27294888f8bb5f
treef52d27c3f06725c7078d6fe876a3a194e45322b4
parent762011d6193f8b9af9b491ded87dde3221d0600a
iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and added support on one-shot sysfs reads to 3 byte channel

This patch introduce num_data_channels variable on st_sensors struct
to manage different type of channels (size or number) in
st_sensors_get_buffer_element function.
Removed ST_SENSORS_NUMBER_DATA_CHANNELS and ST_SENSORS_BYTE_FOR_CHANNEL
and used struct iio_chan_spec const *ch to catch data.
Added 3 byte channel data support on one-shot reads.

Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_buffer.c
drivers/iio/common/st_sensors/st_sensors_core.c
drivers/iio/gyro/st_gyro_core.c
drivers/iio/magnetometer/st_magn_core.c
include/linux/iio/common/st_sensors.h