mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
hwmon: (adt7310) Fix sparse warning
Fix: drivers/hwmon/adt7310.c:51:16: sparse: cast to restricted __be16 Cc: Lars-Peter Clausen <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
fd9175d2f6
commit
71bb2d211e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue