OSDN Git Service

iio: adc: mcp320x: Tidy up endian types in type cast.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Oct 2019 09:05:42 +0000 (10:05 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Oct 2019 18:48:50 +0000 (19:48 +0100)
commit9299b503db31e86d24a67e3074d525c7496e5857
tree6e124ed08a98e8d785d38afbcb334136b2c2dbbb
parent5617f22b236d62e3d5beefa2fea3334ccb8656d3
iio: adc: mcp320x: Tidy up endian types in type cast.

Fixes the sparse warning:
drivers/iio/adc/mcp320x.c:167:41: warning: incorrect type in argument 1 (different base types)
drivers/iio/adc/mcp320x.c:167:41:    expected restricted __be32 const [usertype] *p
drivers/iio/adc/mcp320x.c:167:41:    got unsigned int [usertype] *<noident>

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
drivers/iio/adc/mcp320x.c