git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dn_getsockoptdecnet: move nf_{get/set}sockopt outside sock lock
[pandora-kernel.git]
/
drivers
/
hwmon
/
max16065.c
diff --git
a/drivers/hwmon/max16065.c
b/drivers/hwmon/max16065.c
index
dd2d7b9
..
385886a
100644
(file)
--- a/
drivers/hwmon/max16065.c
+++ b/
drivers/hwmon/max16065.c
@@
-137,10
+137,10
@@
static int max16065_read_adc(struct i2c_client *client, int reg)
{
int rv;
{
int rv;
- rv = i2c_smbus_read_word_
data
(client, reg);
+ rv = i2c_smbus_read_word_
swapped
(client, reg);
if (unlikely(rv < 0))
return rv;
if (unlikely(rv < 0))
return rv;
- return
((rv & 0xff) << 2) | ((rv >> 14) & 0x03)
;
+ return
rv >> 6
;
}
static struct max16065_data *max16065_update_device(struct device *dev)
}
static struct max16065_data *max16065_update_device(struct device *dev)