thermal/drivers/rockchip: Simplify channel id logic
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 8 Mar 2023 11:22:50 +0000 (12:22 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Apr 2023 08:31:33 +0000 (10:31 +0200)
commitf7cef1b743e84bdc7b1f2e5711615aaddf101ca8
treecceddbb8cb940dd1efd57d503b7fad315ee999e2
parentcb71c5f904c5b7e84d770c87bebc5df0bec200a4
thermal/drivers/rockchip: Simplify channel id logic

Replace the channel ID lookup table by a simple offset, since
the channel IDs are consecutive.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20230308112253.15659-5-sebastian.reichel@collabora.com
drivers/thermal/rockchip_thermal.c