diff options
Diffstat (limited to 'drivers/iio/imu/kmx61.c')
-rw-r--r-- | drivers/iio/imu/kmx61.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index bf3468b982a0..777b7f68591c 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c | |||
@@ -681,7 +681,7 @@ static int kmx61_chip_update_thresholds(struct kmx61_data *data) | |||
681 | } | 681 | } |
682 | 682 | ||
683 | static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data, | 683 | static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data, |
684 | bool status, u8 device) | 684 | bool status) |
685 | { | 685 | { |
686 | u8 mode; | 686 | u8 mode; |
687 | int ret; | 687 | int ret; |
@@ -980,7 +980,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev, | |||
980 | if (ret < 0) | 980 | if (ret < 0) |
981 | goto err_unlock; | 981 | goto err_unlock; |
982 | 982 | ||
983 | ret = kmx61_setup_any_motion_interrupt(data, state, KMX61_ACC); | 983 | ret = kmx61_setup_any_motion_interrupt(data, state); |
984 | if (ret < 0) { | 984 | if (ret < 0) { |
985 | kmx61_set_power_state(data, false, KMX61_ACC); | 985 | kmx61_set_power_state(data, false, KMX61_ACC); |
986 | goto err_unlock; | 986 | goto err_unlock; |
@@ -1066,7 +1066,7 @@ static int kmx61_data_rdy_trigger_set_state(struct iio_trigger *trig, | |||
1066 | if (data->acc_dready_trig == trig || data->mag_dready_trig == trig) | 1066 | if (data->acc_dready_trig == trig || data->mag_dready_trig == trig) |
1067 | ret = kmx61_setup_new_data_interrupt(data, state, device); | 1067 | ret = kmx61_setup_new_data_interrupt(data, state, device); |
1068 | else | 1068 | else |
1069 | ret = kmx61_setup_any_motion_interrupt(data, state, KMX61_ACC); | 1069 | ret = kmx61_setup_any_motion_interrupt(data, state); |
1070 | if (ret < 0) { | 1070 | if (ret < 0) { |
1071 | kmx61_set_power_state(data, false, device); | 1071 | kmx61_set_power_state(data, false, device); |
1072 | goto err_unlock; | 1072 | goto err_unlock; |