Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268652
b: refs/heads/master
c: 9d5d115
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent b4982b9 commit 1e52cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81e07c06e62a48ec36a65728a0c3c3cafdfaee17
refs/heads/master: 9d5d11539afba275ff2fec16a180e14b66cb4f1b
9 changes: 5 additions & 4 deletions trunk/drivers/staging/iio/industrialio-buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ static ssize_t iio_show_fixed_type(struct device *dev,
u8 type = this_attr->c->scan_type.endianness;

if (type == IIO_CPU) {
if (__LITTLE_ENDIAN)
type = IIO_LE;
else
type = IIO_BE;
#ifdef __LITTLE_ENDIAN
type = IIO_LE;
#else
type = IIO_BE;
#endif
}
return sprintf(buf, "%s:%c%d/%d>>%u\n",
iio_endian_prefix[type],
Expand Down

0 comments on commit 1e52cf4

Please sign in to comment.