[PATCH 1/6] misc: ub251xb: 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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/misc/usb251xb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c index a78ad1843ae..92e92ba5e62 100644 --- a/drivers/misc/usb251xb.c +++ b/drivers/misc/usb251xb.c @@ -334,7 +334,7 @@ static int usb251xb_probe(struct udevice *dev) struct usb251xb *hub = dev_get_priv(dev); int err;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && hub->vdd) { + if (CONFIG_IS_ENABLED(DM_REGULATOR) && hub->vdd) { err = regulator_set_enable(hub->vdd, true); if (err) return err; @@ -391,7 +391,7 @@ static int usb251xb_of_to_plat(struct udevice *dev) return err; }
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { err = device_get_supply_regulator(dev, "vdd-supply", &hub->vdd); if (err && err != -ENOENT) {

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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/mmc/npcm_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index 7eb17cce0b3..d63521d6855 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -36,7 +36,7 @@ static int npcm_sdhci_probe(struct udevice *dev) return ret; }
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { device_get_supply_regulator(dev, "vqmmc-supply", &vqmmc_supply); vqmmc_uv = dev_read_u32_default(dev, "vqmmc-microvolt", 0); /* Set IO voltage */

On Mon, 27 Feb 2023 at 18:56, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/mmc/npcm_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/video/orisetech_otm8009a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 95738e34bf6..848f174b6e4 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -300,7 +300,7 @@ static int otm8009a_panel_of_to_plat(struct udevice *dev) struct otm8009a_panel_priv *priv = dev_get_priv(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { ret = device_get_supply_regulator(dev, "power-supply", &priv->reg); if (ret && ret != -ENOENT) { @@ -326,7 +326,7 @@ static int otm8009a_panel_probe(struct udevice *dev) struct mipi_dsi_panel_plat *plat = dev_get_plat(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && priv->reg) { + if (CONFIG_IS_ENABLED(DM_REGULATOR) && priv->reg) { dev_dbg(dev, "enable regulator '%s'\n", priv->reg->name); ret = regulator_set_enable(priv->reg, true); if (ret)

On Mon, 27 Feb 2023 at 18:56, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/video/orisetech_otm8009a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org

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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/video/raydium-rm68200.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index 373668d28bf..f1fce55a2cb 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -266,7 +266,7 @@ static int rm68200_panel_of_to_plat(struct udevice *dev) struct rm68200_panel_priv *priv = dev_get_priv(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { ret = device_get_supply_regulator(dev, "power-supply", &priv->reg); if (ret && ret != -ENOENT) { @@ -299,7 +299,7 @@ static int rm68200_panel_probe(struct udevice *dev) struct mipi_dsi_panel_plat *plat = dev_get_plat(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && priv->reg) { + if (CONFIG_IS_ENABLED(DM_REGULATOR) && priv->reg) { ret = regulator_set_enable(priv->reg, true); if (ret) return ret;

On Mon, 27 Feb 2023 at 18:56, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/video/raydium-rm68200.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org

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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/video/simple_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 91c91ee75d8..092906c82c9 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -53,7 +53,7 @@ static int simple_panel_of_to_plat(struct udevice *dev) struct simple_panel_priv *priv = dev_get_priv(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { ret = uclass_get_device_by_phandle(UCLASS_REGULATOR, dev, "power-supply", &priv->reg); if (ret) { @@ -89,7 +89,7 @@ static int simple_panel_probe(struct udevice *dev) struct simple_panel_priv *priv = dev_get_priv(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && priv->reg) { + if (CONFIG_IS_ENABLED(DM_REGULATOR) && priv->reg) { debug("%s: Enable regulator '%s'\n", __func__, priv->reg->name); ret = regulator_set_enable(priv->reg, true); if (ret)

On Mon, 27 Feb 2023 at 18:56, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/video/simple_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org

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 --- Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com --- drivers/video/tdo-tl070wsh30.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index 7ad0af73f05..273672db024 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -75,7 +75,7 @@ static int tl070wsh30_panel_of_to_plat(struct udevice *dev) struct tl070wsh30_panel_priv *priv = dev_get_priv(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) { + if (CONFIG_IS_ENABLED(DM_REGULATOR)) { ret = device_get_supply_regulator(dev, "power-supply", &priv->reg); if (ret && ret != -ENOENT) { @@ -108,7 +108,7 @@ static int tl070wsh30_panel_probe(struct udevice *dev) struct mipi_dsi_panel_plat *plat = dev_get_plat(dev); int ret;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && priv->reg) { + if (CONFIG_IS_ENABLED(DM_REGULATOR) && priv->reg) { ret = regulator_set_enable(priv->reg, true); if (ret) return ret;

On Mon, 27 Feb 2023 at 18:57, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/video/tdo-tl070wsh30.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Mon, 27 Feb 2023 at 18:55, Marek Vasut marek.vasut+renesas@mailbox.org wrote:
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
Cc: Anatolij Gustschin agust@denx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com
drivers/misc/usb251xb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
participants (2)
-
Marek Vasut
-
Simon Glass