]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJonathan Cameron <jic23@kernel.org>
Wed, 5 Nov 2014 18:33:47 +0000 (18:33 +0000)
commitea2f8657e93df975fbb6d512cbc092a860107169
tree4d8d51a9e988ffc01ba1156928d15d05ab9c8458
parent47f0404117f24033afc9d2fcf7cde8ac528b5b1a
staging:iio:ade7758: Fix check if channels are enabled in prenable

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

Fixes: 40bd6b6cd6a1 ("staging:iio: scrap scan_count and ensure all drivers use active_scan_mask")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7758_ring.c