video: simple-panel: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 28 Feb 2023 01:55:22 +0000 (02:55 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 8 Apr 2023 01:53:23 +0000 (03:53 +0200)
commit641c5955811225afc7050a053a2a5e6e8df9488f
treee526f63c1919b5e64e63eb4fa5a687c6bbdf519d
parent97485e3596ed9d0b6f7255b7b53ed80add11bfd7
video: simple-panel: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

The DM_REGULATOR symbol has SPL counterpart in:
  drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR
Use CONFIG_IS_ENABLED() macro to match on the correct
variant depending on the build stage.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/simple_panel.c