瀏覽代碼

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: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jonathan Cameron 13 年之前
父節點
當前提交
09f78be78a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/iio/Documentation/generic_buffer.c

+ 2 - 2
drivers/staging/iio/Documentation/generic_buffer.c

@@ -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 */