iio: imu: kmx61: Use false instead of 0 for ev_enable_state
authorDaniel Baluta <daniel.baluta@intel.com>
Tue, 23 Dec 2014 13:22:29 +0000 (15:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Jan 2015 18:59:53 +0000 (18:59 +0000)
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>
drivers/iio/imu/kmx61.c

index 777b7f68591cabc472f687bed1c6d432aa9600ee..a70a3ef9179358842e7e851b5670021b99ad275e 100644 (file)
@@ -972,7 +972,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev,
        mutex_lock(&data->lock);
 
        if (!state && data->motion_trig_on) {
-               data->ev_enable_state = 0;
+               data->ev_enable_state = false;
                goto err_unlock;
        }