diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2014-12-23 08:22:30 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-05 13:59:54 -0500 |
commit | dbdd0e2dd9981eafe33687d0b2d089c5285ea22b (patch) | |
tree | bead2a4d68de6b6506664d46ded9cc789edfea99 /drivers/iio/imu | |
parent | d4a4ae04d236a01a8648648a0e11777250ab2974 (diff) |
iio: imu: kmx61: Fix device initialization when setting trigger state
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r-- | drivers/iio/imu/kmx61.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index a70a3ef91793..578e3dd944c9 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c | |||
@@ -1053,8 +1053,7 @@ static int kmx61_data_rdy_trigger_set_state(struct iio_trigger *trig, | |||
1053 | goto err_unlock; | 1053 | goto err_unlock; |
1054 | } | 1054 | } |
1055 | 1055 | ||
1056 | 1056 | if (data->acc_dready_trig == trig || data->motion_trig == trig) | |
1057 | if (data->acc_dready_trig == trig || data->motion_trig) | ||
1058 | device = KMX61_ACC; | 1057 | device = KMX61_ACC; |
1059 | else | 1058 | else |
1060 | device = KMX61_MAG; | 1059 | device = KMX61_MAG; |