diff options
author | xinlei lee <xinlei.lee@mediatek.com> | 2022-12-02 19:35:06 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-12-06 12:46:03 +0100 |
commit | 0b5ef3429d8f78427558ab0dcbfd862098ba2a63 (patch) | |
tree | 15d77767cdebdd94458ae9b9aae24324e549ec81 /net | |
parent | 45558b3abb87eeb2cedb8a59cb2699c120b5102a (diff) | |
download | lwn-0b5ef3429d8f78427558ab0dcbfd862098ba2a63.tar.gz lwn-0b5ef3429d8f78427558ab0dcbfd862098ba2a63.zip |
pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm
In the original mtk_disp_pwm_get_state() function wrongly uses bit 0 of
CON0 to judge if the PWM is enabled.
However that is indicated by a bit (at a machine dependent position) in
the DISP_PWM_EN register. Fix this accordingly.
Fixes: 3f2b16734914 ("pwm: mtk-disp: Implement atomic API .get_state()")
Signed-off-by: xinlei lee <xinlei.lee@mediatek.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/1666172538-11652-1-git-send-email-xinlei.lee@mediatek.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions