Skip to content

Commit

Permalink
staging:iio: hid-sensors Use iio_push_to_buffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Cameron committed Sep 7, 2012
1 parent 00176b3 commit a0d7bf7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/iio/accel/hid-sensor-accel-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/gyro/hid-sensor-gyro-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/light/hid-sensor-als.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/magnetometer/hid-sensor-magn-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a0d7bf7

Please sign in to comment.