pinctrl: realtek: Fix logical error when finding descriptor
authorTzuyi Chang <tychang@realtek.com>
Tue, 21 Nov 2023 09:11:07 +0000 (17:11 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Nov 2023 09:39:20 +0000 (10:39 +0100)
commit38a285d5d446ce80b21f997cdc747cc11678b4e0
treefcf0b0d3f2543cf0a4943bd4dc8db8dd827f3796
parent6588732445ff19f6183f0fa72ddedf67e5a5be32
pinctrl: realtek: Fix logical error when finding descriptor

The pin descriptor should be returned if the name has been found in the
descriptor table. Remove the negation in the if statement for accurate
retrieval.

Fixes: e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")
Signed-off-by: Tzuyi Chang <tychang@realtek.com>
Link: https://lore.kernel.org/r/20231121091107.5564-1-tychang@realtek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/realtek/pinctrl-rtd.c