summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera/sequencer.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-12-14 23:47:43 +0100
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2024-12-29 16:55:31 +0100
commit476b886a6ffaff2414a0ba6bfea35b50f0d0cd21 (patch)
treebed113749c926be5c07ea25de5e22702d72bed30 /drivers/ddr/altera/sequencer.c
parentd580a013cca67a8115fb88d260498bde181709a1 (diff)
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>
Diffstat (limited to 'drivers/ddr/altera/sequencer.c')
0 files changed, 0 insertions, 0 deletions