Skip to content

Commit

Permalink
staging:iio:buffer example fix typos
Browse files Browse the repository at this point in the history
I have no idea how I managed to munge the previous
patch related to this.  Sorry all.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 60e6d26 commit 09f78be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/Documentation/generic_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ void print2byte(int input, struct iio_channel_info *info)
/* First swap if incorrect endian */

if (info->be)
input = be16toh((uint_16t)input);
input = be16toh((uint16_t)input);
else
input = le16toh((uint_16t)input);
input = le16toh((uint16_t)input);

/* shift before conversion to avoid sign extension
of left aligned data */
Expand Down

0 comments on commit 09f78be

Please sign in to comment.