regulator: Use menuconfig in Kconfig

Use menuconfig instead of flat configs so that you can disable/enable
regulator items with one selection. Also, use depends instead of
reverse selections to make life easier, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

authored by Takashi Iwai and committed by Liam Girdwood bbda14df a622cf69

+4 -11
+4 -11
drivers/regulator/Kconfig
··· 1 - menu "Voltage and Current regulators" 2 - 3 - config REGULATOR 4 bool "Voltage and Current Regulator Support" 5 default n 6 help ··· 21 22 If unsure, say no. 23 24 config REGULATOR_DEBUG 25 bool "Regulator debug support" 26 - depends on REGULATOR 27 help 28 Say yes here to enable debugging support. 29 30 config REGULATOR_FIXED_VOLTAGE 31 tristate 32 default n 33 - select REGULATOR 34 35 config REGULATOR_VIRTUAL_CONSUMER 36 tristate "Virtual regulator consumer support" 37 default n 38 - select REGULATOR 39 help 40 This driver provides a virtual consumer for the voltage and 41 current regulator API which provides sysfs controls for ··· 46 config REGULATOR_BQ24022 47 tristate "TI bq24022 Dual Input 1-Cell Li-Ion Charger IC" 48 default n 49 - select REGULATOR 50 help 51 This driver controls a TI bq24022 Charger attached via 52 GPIOs. The provided current regulator can enable/disable ··· 55 config REGULATOR_WM8350 56 tristate "Wolfson Microelectroncis WM8350 AudioPlus PMIC" 57 depends on MFD_WM8350 58 - select REGULATOR 59 help 60 This driver provides support for the voltage and current regulators 61 of the WM8350 AudioPlus PMIC. ··· 62 config REGULATOR_WM8400 63 tristate "Wolfson Microelectroncis WM8400 AudioPlus PMIC" 64 depends on MFD_WM8400 65 - select REGULATOR 66 help 67 This driver provides support for the voltage regulators of the 68 WM8400 AudioPlus PMIC. ··· 69 config REGULATOR_DA903X 70 tristate "Support regulators on Dialog Semiconductor DA9030/DA9034 PMIC" 71 depends on PMIC_DA903X 72 - select REGULATOR 73 help 74 Say y here to support the BUCKs and LDOs regulators found on 75 Dialog Semiconductor DA9030/DA9034 PMIC. 76 77 - endmenu
··· 1 + menuconfig REGULATOR 2 bool "Voltage and Current Regulator Support" 3 default n 4 help ··· 23 24 If unsure, say no. 25 26 + if REGULATOR 27 + 28 config REGULATOR_DEBUG 29 bool "Regulator debug support" 30 help 31 Say yes here to enable debugging support. 32 33 config REGULATOR_FIXED_VOLTAGE 34 tristate 35 default n 36 37 config REGULATOR_VIRTUAL_CONSUMER 38 tristate "Virtual regulator consumer support" 39 default n 40 help 41 This driver provides a virtual consumer for the voltage and 42 current regulator API which provides sysfs controls for ··· 49 config REGULATOR_BQ24022 50 tristate "TI bq24022 Dual Input 1-Cell Li-Ion Charger IC" 51 default n 52 help 53 This driver controls a TI bq24022 Charger attached via 54 GPIOs. The provided current regulator can enable/disable ··· 59 config REGULATOR_WM8350 60 tristate "Wolfson Microelectroncis WM8350 AudioPlus PMIC" 61 depends on MFD_WM8350 62 help 63 This driver provides support for the voltage and current regulators 64 of the WM8350 AudioPlus PMIC. ··· 67 config REGULATOR_WM8400 68 tristate "Wolfson Microelectroncis WM8400 AudioPlus PMIC" 69 depends on MFD_WM8400 70 help 71 This driver provides support for the voltage regulators of the 72 WM8400 AudioPlus PMIC. ··· 75 config REGULATOR_DA903X 76 tristate "Support regulators on Dialog Semiconductor DA9030/DA9034 PMIC" 77 depends on PMIC_DA903X 78 help 79 Say y here to support the BUCKs and LDOs regulators found on 80 Dialog Semiconductor DA9030/DA9034 PMIC. 81 82 + endif