iio: imu: kmx61: Use false instead of 0 for ev_enable_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>
This commit is contained in:
parent
0475c68544
commit
d4a4ae04d2
|
@ -972,7 +972,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev,
|
||||||
mutex_lock(&data->lock);
|
mutex_lock(&data->lock);
|
||||||
|
|
||||||
if (!state && data->motion_trig_on) {
|
if (!state && data->motion_trig_on) {
|
||||||
data->ev_enable_state = 0;
|
data->ev_enable_state = false;
|
||||||
goto err_unlock;
|
goto err_unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue