Commit 09f78be7 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:buffer example fix typos

I have no idea how I managed to munge the previous
patch related to this.  Sorry all.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 60e6d268
...@@ -60,9 +60,9 @@ void print2byte(int input, struct iio_channel_info *info) ...@@ -60,9 +60,9 @@ void print2byte(int input, struct iio_channel_info *info)
/* First swap if incorrect endian */ /* First swap if incorrect endian */
if (info->be) if (info->be)
input = be16toh((uint_16t)input); input = be16toh((uint16_t)input);
else else
input = le16toh((uint_16t)input); input = le16toh((uint16_t)input);
/* shift before conversion to avoid sign extension /* shift before conversion to avoid sign extension
of left aligned data */ of left aligned data */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment