Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: simple-mfd-i2c: Remove select I2C_K1 from MFD_SPACEMIT_P1

select will force a symbol to a specific value without considering
its dependencies. As a result, the i2c-k1 driver will fail to build
when OF or COMMON_CLK are disabled.

The reason for removing I2C_K1 instead of adding a depends on condition
is to keep the possibility for other SoCs to use this PMIC.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510211523.sSEVqPUQ-lkp@intel.com/
Acked-by: Alex Elder <elder@riscstar.com>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://lore.kernel.org/all/20251022004830-GYB1522542@gentoo.org/ [1]
Link: https://patch.msgid.link/20251027-p1-kconfig-fix-v2-1-49688f30bae8@linux.spacemit.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Troy Mitchell and committed by
Lee Jones
ecf6bc47 1810b210

-1
-1
drivers/mfd/Kconfig
··· 1275 1275 tristate "SpacemiT P1 PMIC" 1276 1276 depends on ARCH_SPACEMIT || COMPILE_TEST 1277 1277 depends on I2C 1278 - select I2C_K1 1279 1278 select MFD_SIMPLE_MFD_I2C 1280 1279 help 1281 1280 This option supports the I2C-based SpacemiT P1 PMIC, which