Commit 0475c685 authored by Daniel Baluta's avatar Daniel Baluta Committed by Jonathan Cameron

iio: imu: kmx61: Drop unused device parameter

Signed-off-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Reviewed-by: default avatarHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent dfb12ede
...@@ -681,7 +681,7 @@ static int kmx61_chip_update_thresholds(struct kmx61_data *data) ...@@ -681,7 +681,7 @@ static int kmx61_chip_update_thresholds(struct kmx61_data *data)
} }
static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data, static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
bool status, u8 device) bool status)
{ {
u8 mode; u8 mode;
int ret; int ret;
...@@ -980,7 +980,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev, ...@@ -980,7 +980,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev,
if (ret < 0) if (ret < 0)
goto err_unlock; goto err_unlock;
ret = kmx61_setup_any_motion_interrupt(data, state, KMX61_ACC); ret = kmx61_setup_any_motion_interrupt(data, state);
if (ret < 0) { if (ret < 0) {
kmx61_set_power_state(data, false, KMX61_ACC); kmx61_set_power_state(data, false, KMX61_ACC);
goto err_unlock; goto err_unlock;
...@@ -1066,7 +1066,7 @@ static int kmx61_data_rdy_trigger_set_state(struct iio_trigger *trig, ...@@ -1066,7 +1066,7 @@ static int kmx61_data_rdy_trigger_set_state(struct iio_trigger *trig,
if (data->acc_dready_trig == trig || data->mag_dready_trig == trig) if (data->acc_dready_trig == trig || data->mag_dready_trig == trig)
ret = kmx61_setup_new_data_interrupt(data, state, device); ret = kmx61_setup_new_data_interrupt(data, state, device);
else else
ret = kmx61_setup_any_motion_interrupt(data, state, KMX61_ACC); ret = kmx61_setup_any_motion_interrupt(data, state);
if (ret < 0) { if (ret < 0) {
kmx61_set_power_state(data, false, device); kmx61_set_power_state(data, false, device);
goto err_unlock; goto err_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment