pinctrl: renesas: Convert to IS_ENABLED() macro
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 14 Dec 2024 22:47:43 +0000 (23:47 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 29 Dec 2024 15:55:31 +0000 (16:55 +0100)
commit476b886a6ffaff2414a0ba6bfea35b50f0d0cd21
treebed113749c926be5c07ea25de5e22702d72bed30
parentd580a013cca67a8115fb88d260498bde181709a1
pinctrl: renesas: Convert to IS_ENABLED() macro

Use the IS_ENABLED() macro to reduce amount of #ifdef use in the driver
and improve code coverage. With IS_ENABLED() macro, the code is compiled
and then optimized out, which prevents bitrot.

In case no PFC table matches the SoC in use, do not probe the driver
and instead exit with -ENODEV. This should never happen under normal
conditions, because this would mean the driver DT compatible string
match happened, but the list in probe() cannot match the model listed
in match data associated with the compatible string on which the match
did happen.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/pinctrl/renesas/pfc.c