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