Skip to content
Permalink
Browse files

drivers: espi: kconfig: Remove redundant ESPI_PERIPHERAL_CHANNEL deps.

The ESPI_PERIPHERAL_* symbols are surrounded by an
'if ESPI_PERIPHERAL_CHANNEL' in the same file, so no
need to put 'depends on ESPI_PERIPHERAL' on them.

'if' is just a shorthand for 'depends on'.

Also remove a redundant 'if ESPI' from ESPI_XEC.
drivers/espi/Kconfig.xec is sourced within an 'if ESPI' in
drivers/espi/Kconfig.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information...
ulfalizer authored and galak committed Aug 7, 2019
1 parent cc8cf88 commit a9490541d6d5bb32ce9ded933a656cc2ebb4aab2
Showing with 0 additions and 6 deletions.
  1. +0 −5 drivers/espi/Kconfig
  2. +0 −1 drivers/espi/Kconfig.xec
@@ -58,35 +58,30 @@ if ESPI_PERIPHERAL_CHANNEL

config ESPI_PERIPHERAL_UART
bool "UART peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables UART over eSPI peripheral channel

config ESPI_PERIPHERAL_8042_KEYBOARD
bool "8042 keyboard peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables 8042 keyboard over eSPI peripheral channel

config ESPI_PERIPHERAL_HOST_IO
bool "Host I/O peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables ACPI Host I/O over eSPI peripheral channel

config ESPI_PERIPHERAL_PORT_92
bool "Legacy Port 92 peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables legacy Port 92 over eSPI peripheral channel

config ESPI_PERIPHERAL_DEBUG_PORT_80
bool "Debug Port 80 peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables debug Port 80 over eSPI peripheral channel
@@ -7,7 +7,6 @@

menuconfig ESPI_XEC
bool "XEC Microchip ESPI driver"
depends on ESPI
help
Enable the Microchip XEC ESPI driver.

0 comments on commit a949054

Please sign in to comment.
You can’t perform that action at this time.