Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236145
b: refs/heads/master
c: fc7f95a
h: refs/heads/master
i:
  236143: c073fde
v: v3
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Feb 28, 2011
1 parent 0899763 commit aa91831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 7ccd4506fa49600a3c59cf64608b2c9e669b6c97
refs/heads/master: fc7f95a94606fd81d8a3910c1477ea7340b52b9f
4 changes: 2 additions & 2 deletions trunk/drivers/staging/iio/Documentation/iio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline int iioutils_get_type(unsigned *is_signed,
DIR *dp;
char *scan_el_dir, *builtname, *builtname_generic, *filename = 0;
char signchar;
unsigned sizeint, padint;
unsigned padint;
const struct dirent *ent;

ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir);
Expand Down Expand Up @@ -159,7 +159,7 @@ inline int iioutils_get_type(unsigned *is_signed,
fscanf(sysfsfp,
"%c%u/%u", &signchar, bits_used, &padint);
*bytes = padint / 8;
if (sizeint == 64)
if (*bits_used == 64)
*mask = ~0;
else
*mask = (1 << *bits_used) - 1;
Expand Down

0 comments on commit aa91831

Please sign in to comment.