sunxi: pmic_bus: Fix Kconfig dependencies
authorSamuel Holland <samuel@sholland.org>
Fri, 8 Oct 2021 05:17:19 +0000 (00:17 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 12 Oct 2021 08:50:27 +0000 (09:50 +0100)
commit4ab39e74b640799748dfdef49f099b416a5ae497
tree5246e53dadc2921c9d52ca70d458c10c5cdcc981
parentabd2e783f15ce372e275eb66f732c4edbaf0c0b6
sunxi: pmic_bus: Fix Kconfig dependencies

AXP_PMIC_BUS enables communication with a specific AXP PMIC at a
PMIC-dependent I2C/P2WI/RSB bus address. It is automatically selected
as a dependency of the PMIC driver. It should not be selectable by the
user when no PMIC is chosen.

AXP_GPIO uses the pmic_bus functions, and also depends on a specific
PMIC header to pick up register definitions.

Both of these changes have no impact on any existing configs, since
the code does not compile if the dependencies are not met.

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Kconfig