Skip to content

Commit 6ca4f46

Browse files
committed
power: reset: Add if statement instead of multiple depends on
All the config option so far are depending on the POWER_RESET symbol Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Acked-by: Alexandre Belloni <[email protected]>
1 parent b736bcb commit 6ca4f46

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

drivers/power/reset/Kconfig

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,39 @@ menuconfig POWER_RESET
66

77
Say Y here to enable board reset and power off
88

9+
if POWER_RESET
10+
911
config POWER_RESET_AS3722
1012
bool "ams AS3722 power-off driver"
11-
depends on MFD_AS3722 && POWER_RESET
13+
depends on MFD_AS3722
1214
help
1315
This driver supports turning off board via a ams AS3722 power-off.
1416

1517
config POWER_RESET_AXXIA
1618
bool "LSI Axxia reset driver"
17-
depends on POWER_RESET && ARCH_AXXIA
19+
depends on ARCH_AXXIA
1820
help
1921
This driver supports restart for Axxia SoC.
2022

2123
Say Y if you have an Axxia family SoC.
2224

2325
config POWER_RESET_GPIO
2426
bool "GPIO power-off driver"
25-
depends on OF_GPIO && POWER_RESET
27+
depends on OF_GPIO
2628
help
2729
This driver supports turning off your board via a GPIO line.
2830
If your board needs a GPIO high/low to power down, say Y and
2931
create a binding in your devicetree.
3032

3133
config POWER_RESET_MSM
3234
bool "Qualcomm MSM power-off driver"
33-
depends on POWER_RESET && ARCH_QCOM
35+
depends on ARCH_QCOM
3436
help
3537
Power off and restart support for Qualcomm boards.
3638

3739
config POWER_RESET_QNAP
3840
bool "QNAP power-off driver"
39-
depends on OF_GPIO && POWER_RESET && PLAT_ORION
41+
depends on OF_GPIO && PLAT_ORION
4042
help
4143
This driver supports turning off QNAP NAS devices by sending
4244
commands to the microcontroller which controls the main power.
@@ -54,22 +56,20 @@ config POWER_RESET_RESTART
5456
config POWER_RESET_SUN6I
5557
bool "Allwinner A31 SoC reset driver"
5658
depends on ARCH_SUNXI
57-
depends on POWER_RESET
5859
help
5960
Reboot support for the Allwinner A31 SoCs.
6061

6162
config POWER_RESET_VEXPRESS
6263
bool "ARM Versatile Express power-off and reset driver"
6364
depends on ARM || ARM64
64-
depends on POWER_RESET && VEXPRESS_CONFIG
65+
depends on VEXPRESS_CONFIG
6566
help
6667
Power off and reset support for the ARM Ltd. Versatile
6768
Express boards.
6869

6970
config POWER_RESET_XGENE
7071
bool "APM SoC X-Gene reset driver"
7172
depends on ARM64
72-
depends on POWER_RESET
7373
help
7474
Reboot support for the APM SoC X-Gene Eval boards.
7575

@@ -80,3 +80,4 @@ config POWER_RESET_KEYSTONE
8080
help
8181
Reboot support for the KEYSTONE SoCs.
8282

83+
endif

0 commit comments

Comments
 (0)