iio:adc:ad799x: Only expose event interface when IRQ is available
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 6 Dec 2014 05:54:00 +0000 (05:54 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Jul 2014 20:56:14 +0000 (21:56 +0100)
commit91556c69394d08ad32525b76436a8deab6155cbd
tree68e4d2fb490a8c3cc818b42af32837c488e36ce3
parente1c6e2a2173c88c1be6a43df407567ae1c11cc22
iio:adc:ad799x: Only expose event interface when IRQ is available

an IRQ is necessary to handle the ALERT condition; without
IRQ, the IIO event interface serves no purpose

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad799x.c