]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: Kconfig: Default MFD_SPACEMIT_P1 to 'm' if ARCH_SPACEMIT
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Thu, 25 Dec 2025 07:46:32 +0000 (15:46 +0800)
committerLee Jones <lee@kernel.org>
Thu, 22 Jan 2026 14:23:13 +0000 (14:23 +0000)
The default value of the P1 sub-device depends on the value
of P1, so P1 should have a default value here.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Acked-by: Alex Elder <elder@riscstar.com>
Link: https://patch.msgid.link/20251225-p1-kconfig-fix-v4-2-44b6728117c1@linux.spacemit.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/Kconfig

index cbd7249b4d2ffe1120f7b2325ba6b09fcc134b7f..7b8d6868e17024c3d9b5c147180697c0ab056172 100644 (file)
@@ -1276,6 +1276,7 @@ config MFD_SPACEMIT_P1
        depends on ARCH_SPACEMIT || COMPILE_TEST
        depends on I2C
        select MFD_SIMPLE_MFD_I2C
+       default m if ARCH_SPACEMIT
        help
          This option supports the I2C-based SpacemiT P1 PMIC, which
          contains regulators, a power switch, GPIOs, an RTC, and more.