staging:iio:ade7758: Fix check if channels are enabled in prenable
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 4 Nov 2014 17:03:15 +0000 (18:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:47:58 +0000 (08:47 -0800)
commit4fdbedf5569be1dbd53cb6d87743e155b1eb032a
treed2c211a5b32cf1fd400d6e7778d0c5b38f85431a
parent035bc79c51a0c5cfca17f1692f9ad9de0d3ae829
staging:iio:ade7758: Fix check if channels are enabled in prenable

commit 79fa64eb2ee8ccb4bcad7f54caa2699730b10b22 upstream.

We should check if a channel is enabled, not if no channels are enabled.

Fixes: 550268ca1111 ("staging:iio: scrap scan_count and ensure all drivers use active_scan_mask")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7758_ring.c