提交 a0d7bf7d 编写于 作者: J Jonathan Cameron

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: NJonathan Cameron <jic23@kernel.org>
Acked-by: Nsrinivas pandruvada <srinivas.pandruvada@intel.com>
上级 00176b36
...@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) ...@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz); datum_sz);
return; 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 */ /* Callback handler to send event after all samples are received and captured */
......
...@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) ...@@ -212,7 +212,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz); datum_sz);
return; 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 */ /* Callback handler to send event after all samples are received and captured */
......
...@@ -191,7 +191,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) ...@@ -191,7 +191,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz); datum_sz);
return; 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 */ /* Callback handler to send event after all samples are received and captured */
......
...@@ -213,7 +213,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) ...@@ -213,7 +213,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz); datum_sz);
return; 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 */ /* Callback handler to send event after all samples are received and captured */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册