]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging:iio:buffer example fix typos
authorJonathan Cameron <jic23@kernel.org>
Tue, 10 Apr 2012 20:11:04 +0000 (21:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 20:26:32 +0000 (13:26 -0700)
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>
drivers/staging/iio/Documentation/generic_buffer.c

index 69a05b9456d6cae1e74563acb8e59db02a280995..bf553356fdada818bf537165753f77e57210e260 100644 (file)
@@ -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 */