]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
backlight: qcom-wled: Use cpu_to_le16 macro to perform conversion
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 15 Nov 2021 20:34:53 +0000 (21:34 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:40 +0000 (10:59 +0100)
commitfe727293fcd42381f5631725a38b5f11347e50b3
tree59d4efb6993e9a62066a37af3ed9d7843451a4aa
parent9b2ad68866d7077e9108b540fe41f6f5eea5262b
backlight: qcom-wled: Use cpu_to_le16 macro to perform conversion

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit 0a139358548968b2ff308257b4fbeec7badcc3e1 ]

The kernel already provides appropriate primitives to perform endianness
conversion which should be used in favour of manual bit-wrangling.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211115203459.1634079-4-marijn.suijten@somainline.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/video/backlight/qcom-wled.c