Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -4
+1 -1
drivers/iio/accel/hid-sensor-accel-3d.c
··· 212 212 datum_sz); 213 213 return; 214 214 } 215 - buffer->access->store_to(buffer, (u8 *)data, timestamp); 215 + iio_push_to_buffer(buffer, (u8 *)data, timestamp); 216 216 } 217 217 218 218 /* Callback handler to send event after all samples are received and captured */
+1 -1
drivers/iio/gyro/hid-sensor-gyro-3d.c
··· 212 212 datum_sz); 213 213 return; 214 214 } 215 - buffer->access->store_to(buffer, (u8 *)data, timestamp); 215 + iio_push_to_buffer(buffer, (u8 *)data, timestamp); 216 216 } 217 217 218 218 /* Callback handler to send event after all samples are received and captured */
+1 -1
drivers/iio/light/hid-sensor-als.c
··· 191 191 datum_sz); 192 192 return; 193 193 } 194 - buffer->access->store_to(buffer, (u8 *)data, timestamp); 194 + iio_push_to_buffer(buffer, (u8 *)data, timestamp); 195 195 } 196 196 197 197 /* Callback handler to send event after all samples are received and captured */
+1 -1
drivers/iio/magnetometer/hid-sensor-magn-3d.c
··· 213 213 datum_sz); 214 214 return; 215 215 } 216 - buffer->access->store_to(buffer, (u8 *)data, timestamp); 216 + iio_push_to_buffer(buffer, (u8 *)data, timestamp); 217 217 } 218 218 219 219 /* Callback handler to send event after all samples are received and captured */