projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd9175d
)
hwmon: (adt7310) Fix sparse warning
author
Guenter Roeck
<linux@roeck-us.net>
Mon, 18 Mar 2013 10:46:12 +0000
(
03:46
-0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 8 Apr 2013 04:16:41 +0000
(21:16 -0700)
Fix: drivers/hwmon/adt7310.c:51:16: sparse: cast to restricted __be16
Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7310.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/adt7310.c
b/drivers/hwmon/adt7310.c
index
b70a481
..
da5f078
100644
(file)
--- a/
drivers/hwmon/adt7310.c
+++ b/
drivers/hwmon/adt7310.c
@@
-48,7
+48,7
@@
static int adt7310_spi_read_word(struct device *dev, u8 reg)
if (ret < 0)
return ret;
- return be16_to_cpu(ret);
+ return be16_to_cpu(
(__force __be16)
ret);
}
static int adt7310_spi_write_word(struct device *dev, u8 reg, u16 data)