OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f70d669
)
staging:iio:hmc5843: Use i2c_smbus_read_word_swapped()
author
Peter Meerwald
<pmeerw@pmeerw.net>
Sat, 27 Jul 2013 15:31:00 +0000
(16:31 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 4 Aug 2013 10:22:55 +0000
(11:22 +0100)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/magnetometer/hmc5843.c
b/drivers/staging/iio/magnetometer/hmc5843.c
index
3204593
..
d2748c3
100644
(file)
--- a/
drivers/staging/iio/magnetometer/hmc5843.c
+++ b/
drivers/staging/iio/magnetometer/hmc5843.c
@@
-224,12
+224,12
@@
static int hmc5843_read_measurement(struct iio_dev *indio_dev,
return -EIO;
}
- result = i2c_smbus_read_word_
data
(client, address);
+ result = i2c_smbus_read_word_
swapped
(client, address);
mutex_unlock(&data->lock);
if (result < 0)
return -EINVAL;
- *val =
(s16)swab16((u16)result)
;
+ *val =
result
;
return IIO_VAL_INT;
}