]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Correct SPL uses of PMIC_STPMIC1
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:40:35 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:40 +0000 (07:41 -0500)
This converts 2 usages of this option to the non-SPL form, since there is
no SPL_PMIC_STPMIC1 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c

index 934800be93d6b9b197c85a6f69193a16988c8cdb..6f3641ccf57b7db13a87ea7c838ed2205a1499e5 100644 (file)
@@ -1583,7 +1583,7 @@ int stm32prog_pmic_read(struct stm32prog_data *data, u32 offset, u8 *buffer,
        int result = 0, ret;
        struct udevice *dev;
 
-       if (!CONFIG_IS_ENABLED(PMIC_STPMIC1)) {
+       if (!IS_ENABLED(CONFIG_PMIC_STPMIC1)) {
                stm32prog_err("PMIC update not supported");
 
                return -EOPNOTSUPP;
@@ -1633,7 +1633,7 @@ int stm32prog_pmic_start(struct stm32prog_data *data)
        int ret;
        struct udevice *dev;
 
-       if (!CONFIG_IS_ENABLED(PMIC_STPMIC1)) {
+       if (!IS_ENABLED(CONFIG_PMIC_STPMIC1)) {
                stm32prog_err("PMIC update not supported");
 
                return -EOPNOTSUPP;