diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-17 01:41:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-17 01:41:38 -0400 |
commit | 78077256bc08348d587e318957ceb41fe4d4afae (patch) | |
tree | 8bc82e916d40a0593519b718a8e85fcf5022be4e /include | |
parent | ade7615de0643a9da628688e661e08148cd7c463 (diff) | |
parent | 67dbf54a3b03881c7b683801fa49ca1f2c4c3bcf (diff) |
Merge tag 'iio-fixes-for-3.11a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
Jonathan writes:
The first round of IIO fixes for the 3.11 cycle.
This set is larger than I would like, partly due to my lack of review
time in the weeks before the merge window and partly because a
couple of large drivers and the subsystem as a whole seem to be
getting a lot more exposure and testing recently.
1) A long term bug in trigger handling gave a double free of the device.
2) Wrong return value handling means offsets are ignored in
iio_convert_raw_to_processed_unlocked.
3) The iio_channel_has_info utility function was incorrectly updated
during the recent info_mask split, this is now fixed.
4) mxs-lradc has a couple of little fixes.
5) A couple of missing .driver_module entries meant that drivers
could be removed from underneath their users.
6) Error path fixes for ad7303 and lis3l02dq.
7) The scale value for presure in the lps331ap driver was out by
a factor of 100.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iio/iio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 8d171f427632..3d35b7023591 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h | |||
@@ -211,8 +211,8 @@ struct iio_chan_spec { | |||
211 | static inline bool iio_channel_has_info(const struct iio_chan_spec *chan, | 211 | static inline bool iio_channel_has_info(const struct iio_chan_spec *chan, |
212 | enum iio_chan_info_enum type) | 212 | enum iio_chan_info_enum type) |
213 | { | 213 | { |
214 | return (chan->info_mask_separate & type) | | 214 | return (chan->info_mask_separate & BIT(type)) | |
215 | (chan->info_mask_shared_by_type & type); | 215 | (chan->info_mask_shared_by_type & BIT(type)); |
216 | } | 216 | } |
217 | 217 | ||
218 | #define IIO_ST(si, rb, sb, sh) \ | 218 | #define IIO_ST(si, rb, sb, sh) \ |