diff options
Diffstat (limited to 'drivers/iio/magnetometer/hid-sensor-magn-3d.c')
-rw-r--r-- | drivers/iio/magnetometer/hid-sensor-magn-3d.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/iio/magnetometer/hid-sensor-magn-3d.c b/drivers/iio/magnetometer/hid-sensor-magn-3d.c index 3ec777a8f64e..1e717c71c244 100644 --- a/drivers/iio/magnetometer/hid-sensor-magn-3d.c +++ b/drivers/iio/magnetometer/hid-sensor-magn-3d.c | |||
@@ -246,8 +246,7 @@ static const struct iio_info magn_3d_info = { | |||
246 | }; | 246 | }; |
247 | 247 | ||
248 | /* Function to push data to buffer */ | 248 | /* Function to push data to buffer */ |
249 | static void hid_sensor_push_data(struct iio_dev *indio_dev, const void *data, | 249 | static void hid_sensor_push_data(struct iio_dev *indio_dev, const void *data) |
250 | int len) | ||
251 | { | 250 | { |
252 | dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n"); | 251 | dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n"); |
253 | iio_push_to_buffers(indio_dev, data); | 252 | iio_push_to_buffers(indio_dev, data); |
@@ -263,9 +262,7 @@ static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, | |||
263 | 262 | ||
264 | dev_dbg(&indio_dev->dev, "magn_3d_proc_event\n"); | 263 | dev_dbg(&indio_dev->dev, "magn_3d_proc_event\n"); |
265 | if (atomic_read(&magn_state->common_attributes.data_ready)) | 264 | if (atomic_read(&magn_state->common_attributes.data_ready)) |
266 | hid_sensor_push_data(indio_dev, | 265 | hid_sensor_push_data(indio_dev, magn_state->iio_vals); |
267 | magn_state->iio_vals, | ||
268 | sizeof(magn_state->iio_vals)); | ||
269 | 266 | ||
270 | return 0; | 267 | return 0; |
271 | } | 268 | } |