]> www.infradead.org Git - users/hch/misc.git/commit
pinctrl: mediatek: Fix the invalid conditions
authorHao Chang <ot_chhao.chang@mediatek.com>
Sat, 29 Mar 2025 02:40:29 +0000 (10:40 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Apr 2025 07:45:07 +0000 (09:45 +0200)
commit86dee87f4b2e6ac119b03810e58723d0b27787a4
tree13a29e17910a0fc2882059c32055d2541def0db6
parent136fa80169c63130d5ce3c24ab8045c59e684e4f
pinctrl: mediatek: Fix the invalid conditions

The variable count_reg_names is defined as an int type and cannot be
directly compared to an unsigned int. To resolve this issue,
first verify the correctness of count_reg_names.

Link: https://lore.kernel.org/all/5ae93d42e4c4e70fb33bf35dcc37caebf324c8d3.camel@mediatek.com/T/
Signed-off-by: Hao Chang <ot_chhao.chang@mediatek.com>
Signed-off-by: Qingliang Li <qingliang.li@mediatek.com>
Link: https://lore.kernel.org/20250329024533.5279-1-ot_chhao.chang@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/mtk-eint.c
drivers/pinctrl/mediatek/mtk-eint.h
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c