iio: Fix iio_channel_has_info
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 1 Jul 2013 14:20:00 +0000 (15:20 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 2 Jul 2013 21:08:20 +0000 (22:08 +0100)
commit1c297a66654a3295ae87e2b7f3724d214eb2b5ec
tree4016e4bde46063b837cf2b8095dc95399f2f6461
parent8bade406649245292d6fcd1947cd7ad2ad8c80c1
iio: Fix iio_channel_has_info

Since the info_mask split, iio_channel_has_info() is not working correctly.
info_mask_separate and info_mask_shared_by_type, it is not possible to compare
them directly with the iio_chan_info_enum enum. Correct that bit using the BIT()
macro.

Cc: <stable@vger.kernel.org> # 3.10.x
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
include/linux/iio/iio.h