Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71bb2d21 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarGuenter Roeck <linux@roeck-us.net>
parent fd9175d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -48,7 +48,7 @@ static int adt7310_spi_read_word(struct device *dev, u8 reg)
	if (ret < 0)
	if (ret < 0)
		return ret;
		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)
static int adt7310_spi_write_word(struct device *dev, u8 reg, u16 data)