summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-09-06 22:12:53 +0100
committerJonathan Cameron <jic23@kernel.org>2012-09-07 19:09:20 +0100
commita0d7bf7dd1b37ccd6804cd62ca037c1efe3b2e27 (patch)
tree4aa0cca119eda64e5760c683077c03bec9a1aeaf /drivers/iio
parent00176b360ce44bcc5dea2bcd0c8ff5ba9309685f (diff)
staging:iio: hid-sensors Use iio_push_to_buffer
Consistently use iio_push_to_buffer instead of manually calling the buffers store_to callback. These crossed with Lars-Peter's patch set doing every other case. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/hid-sensor-accel-3d.c2
-rw-r--r--drivers/iio/gyro/hid-sensor-gyro-3d.c2
-rw-r--r--drivers/iio/light/hid-sensor-als.c2
-rw-r--r--drivers/iio/magnetometer/hid-sensor-magn-3d.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c b/drivers/iio/accel/hid-sensor-accel-3d.c
index 33aa97cb8e5..c593eb23927 100644
--- a/drivers/iio/accel/hid-sensor-accel-3d.c
+++ b/drivers/iio/accel/hid-sensor-accel-3d.c
@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz);
return;
}
- buffer->access->store_to(buffer, (u8 *)data, timestamp);
+ iio_push_to_buffer(buffer, (u8 *)data, timestamp);
}
/* Callback handler to send event after all samples are received and captured */
diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c
index 50ec09b0b36..94a4740135e 100644
--- a/drivers/iio/gyro/hid-sensor-gyro-3d.c
+++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c
@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz);
return;
}
- buffer->access->store_to(buffer, (u8 *)data, timestamp);
+ iio_push_to_buffer(buffer, (u8 *)data, timestamp);
}
/* Callback handler to send event after all samples are received and captured */
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index 2cff7d5167b..b3c8e91b2c8 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -191,7 +191,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz);
return;
}
- buffer->access->store_to(buffer, (u8 *)data, timestamp);
+ iio_push_to_buffer(buffer, (u8 *)data, timestamp);
}
/* Callback handler to send event after all samples are received and captured */
diff --git a/drivers/iio/magnetometer/hid-sensor-magn-3d.c b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
index 07591f44355..397704eded9 100644
--- a/drivers/iio/magnetometer/hid-sensor-magn-3d.c
+++ b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
@@ -213,7 +213,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz);
return;
}
- buffer->access->store_to(buffer, (u8 *)data, timestamp);
+ iio_push_to_buffer(buffer, (u8 *)data, timestamp);
}
/* Callback handler to send event after all samples are received and captured */