]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: si1145: Drop use of %hhx format specifier.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Jun 2021 18:06:12 +0000 (19:06 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Jun 2021 17:31:03 +0000 (18:31 +0100)
commit5a957cf83ac2d6b7bc59d806bfb27a830158d011
treeba0e35faf0f92a9bae7da62aca510d50b1b8ba4d
parent43e3f7e26c50df0f27bea0776959205ef6cdfa13
iio: light: si1145: Drop use of %hhx format specifier.

Since:
commit deabdf7d821e ("docs: printk-formats: Stop encouraging use of
unnecessary %h[xudi] and %hh[xudi]")
use of these format strings has been discouraged.

As there are only a few such instances in IIO, this is part of a
series clearing them out so they don't get copied into new drivers.

Use the 0x02x form as the length specifier when used with # includes
the 0x prefix and is very unlikely to be what was intended by the author.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20210603180612.3635250-5-jic23@kernel.org
drivers/iio/light/si1145.c