staging:iio:accel:lis3l02dq add symmetry to check for presence of trigger.
authorJonathan Cameron <jic23@kernel.org>
Tue, 10 Apr 2012 20:11:08 +0000 (21:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 20:26:33 +0000 (13:26 -0700)
commit8b1f52278f544af608d576e8db2b79ed651a9414
treefb4138fdb1c98733d1b134ece62b79c9d8467a4b
parent0b27d678c7fbeb88ab07b890b09c32a83121d9d6
staging:iio:accel:lis3l02dq add symmetry to check for presence of trigger.

Checking indio_dev->modes is uggly and not symmetric with the conditions
on whether triggers are allowed in the first place.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/lis3l02dq_core.c