]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio: hid-sensors Use iio_push_to_buffer
authorJonathan Cameron <jic23@kernel.org>
Thu, 6 Sep 2012 21:12:53 +0000 (22:12 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 7 Sep 2012 18:09:20 +0000 (19:09 +0100)
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>
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c

index 33aa97cb8e5e3a08cab1c4fc6df83f2ac5790cae..c593eb239270cd5a88b5cafb2945ed67909b5825 100644 (file)
@@ -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 */
index 50ec09b0b368ac1b7162196778d0813f4878c957..94a4740135e77c81c735040d7febcfce66da97b5 100644 (file)
@@ -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 */
index 2cff7d5167b24f4e39d294c87b1685601e221611..b3c8e91b2c8dac253a4810703907052b523522b0 100644 (file)
@@ -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 */
index 07591f443554bf60b4ef64e3d23ae6189ed58ed7..397704eded97e5b729653aefed224feb828b78aa 100644 (file)
@@ -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 */