diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-03-18 11:46:12 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-08 06:16:41 +0200 |
commit | 71bb2d211e47b9a04348149608629afc2742fee0 (patch) | |
tree | ce083b6e8721f8d93bdd43044c62207abccbd572 /drivers/hwmon/adt7310.c | |
parent | hwmon: (pmbus/ltc2978) Add support for LTC2974 and LTC3883 (diff) | |
download | linux-71bb2d211e47b9a04348149608629afc2742fee0.tar.xz linux-71bb2d211e47b9a04348149608629afc2742fee0.zip |
hwmon: (adt7310) Fix sparse warning
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>
Diffstat (limited to 'drivers/hwmon/adt7310.c')
-rw-r--r-- | drivers/hwmon/adt7310.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7310.c b/drivers/hwmon/adt7310.c index b70a481bca17..da5f0789fb97 100644 --- 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) |