thermal/drivers/mediatek/lvts_thermal: Fix sensor 1 interrupt status bitmask
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 28 Mar 2023 03:10:17 +0000 (11:10 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Apr 2023 09:18:28 +0000 (11:18 +0200)
commit13f03bcd02e4b0498c8ccb066b4eddf61dee6681
treeaa524bc89cc3371875b18ef1f67db551dc47cbf9
parent45cc9c4f765b72b06132cfddcd41e44f12edf9e4
thermal/drivers/mediatek/lvts_thermal: Fix sensor 1 interrupt status bitmask

The binary representation for sensor 1 interrupt status was incorrectly
assembled, when compared to the full table given in the same comment
section. The conversion into hex was also incorrect, leading to
incorrect interrupt status bitmask for sensor 1. This would cause the
driver to incorrectly identify changes for sensor 1, when in fact it
was sensor 0, or a sensor access time out.

Fix the binary and hex representations in the comments, and the actual
bitmask macro.

Fixes: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230328031017.1360976-1-wenst@chromium.org
drivers/thermal/mediatek/lvts_thermal.c