summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2019-10-13 11:55:15 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-10-18 20:52:03 +0200
commit78b75ab3f8c9dfac563b81105a1b838ec37a940e (patch)
treeb2e8bcc6a0209ac83b801b3ce08a9207b6995130 /virt
parentiio: adc: stmpe-adc: Cleanup endian type of local variable (diff)
downloadlinux-78b75ab3f8c9dfac563b81105a1b838ec37a940e.tar.xz
linux-78b75ab3f8c9dfac563b81105a1b838ec37a940e.zip
iio: chemical: sps30: Explicity truncate constant by masking
When breaking up a constant to write to two 8 bit registers it isn't obvious to sparse that it was intentional. CHECK drivers/iio/chemical/sps30.c drivers/iio/chemical/sps30.c:120:30: warning: cast truncates bits from constant value (8004 becomes 4) So in the interests of minimising noisy warnings, let us add a mask. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Tomasz Duszynski <tduszyns@gmail.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions