Commit a0d7bf7d authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

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: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarsrinivas pandruvada <srinivas.pandruvada@intel.com>
parent 00176b36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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 */