OSDN Git Service

iio: gyro: mpu3050: Explicity make a 'poison' value big endian
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Oct 2019 10:02:55 +0000 (11:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Oct 2019 18:55:05 +0000 (19:55 +0100)
commit1123c084d75116bb6d4a0ff3801facde786093a5
treecd51fd3a93de12d06a22d155fe5011758ae468c6
parent78b75ab3f8c9dfac563b81105a1b838ec37a940e
iio: gyro: mpu3050: Explicity make a 'poison' value big endian

This clearly has no actual affect but it does show sparse and similar
static analysers that we are doing this intentionally.

CHECK   drivers/iio/gyro/mpu3050-core.c
drivers/iio/gyro/mpu3050-core.c:546:48: warning: incorrect type in assignment (different base types)
drivers/iio/gyro/mpu3050-core.c:546:48:    expected restricted __be16 <noident>
drivers/iio/gyro/mpu3050-core.c:546:48:    got int

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/iio/gyro/mpu3050-core.c