Skip to content

Commit a0d7bf7

Browse files
committed
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>
1 parent 00176b3 commit a0d7bf7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/iio/accel/hid-sensor-accel-3d.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
212212
datum_sz);
213213
return;
214214
}
215-
buffer->access->store_to(buffer, (u8 *)data, timestamp);
215+
iio_push_to_buffer(buffer, (u8 *)data, timestamp);
216216
}
217217

218218
/* Callback handler to send event after all samples are received and captured */

‎drivers/iio/gyro/hid-sensor-gyro-3d.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
212212
datum_sz);
213213
return;
214214
}
215-
buffer->access->store_to(buffer, (u8 *)data, timestamp);
215+
iio_push_to_buffer(buffer, (u8 *)data, timestamp);
216216
}
217217

218218
/* Callback handler to send event after all samples are received and captured */

‎drivers/iio/light/hid-sensor-als.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
191191
datum_sz);
192192
return;
193193
}
194-
buffer->access->store_to(buffer, (u8 *)data, timestamp);
194+
iio_push_to_buffer(buffer, (u8 *)data, timestamp);
195195
}
196196

197197
/* Callback handler to send event after all samples are received and captured */

‎drivers/iio/magnetometer/hid-sensor-magn-3d.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
213213
datum_sz);
214214
return;
215215
}
216-
buffer->access->store_to(buffer, (u8 *)data, timestamp);
216+
iio_push_to_buffer(buffer, (u8 *)data, timestamp);
217217
}
218218

219219
/* Callback handler to send event after all samples are received and captured */

0 commit comments

Comments
 (0)