staging:iio: use spi->irq valid rather than querying available modes
authorJonathan Cameron <jic23@kernel.org>
Tue, 10 Apr 2012 20:11:09 +0000 (21:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 20:26:33 +0000 (13:26 -0700)
commit487db48506513fa80138951f081db3d12b36b7e1
treecf87cdbcef5b898265664898a57b4eff7ec91cc0
parent8b1f52278f544af608d576e8db2b79ed651a9414
staging:iio: use spi->irq valid rather than querying available modes

Given these drivers only try to add the trigger if a valid
irq is present it is clearer to check the same condition when
deciding whether to remove it on a later trigger.

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