mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
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>
This commit is contained in:
parent
78b75ab3f8
commit
1123c084d7
@ -543,7 +543,7 @@ static irqreturn_t mpu3050_trigger_handler(int irq, void *p)
|
||||
toread = bytes_per_datum;
|
||||
offset = 1;
|
||||
/* Put in some dummy value */
|
||||
fifo_values[0] = 0xAAAA;
|
||||
fifo_values[0] = cpu_to_be16(0xAAAA);
|
||||
}
|
||||
|
||||
ret = regmap_bulk_read(mpu3050->map,
|
||||
|
Loading…
Reference in New Issue
Block a user