Commit 937ca284 authored by Russell King's avatar Russell King Committed by Thierry Reding

drm/panel: consolidate unnecessary explicit dependencies

DRM_PANEL_LD9040 and DRM_PANEL_S6E8AA0 both explicitly depended on
DRM_PANEL && DRM, whereas DRM_PANEL_SIMPLE relies upon the dependency
on the menu.

We do not need to use explicit dependencies if we make the menu depend
on DRM_PANEL && DRM - this will implicitly make each entry in the menu
depend on DRM_PANEL && DRM without this needing to be explicitly stated
against every entry.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 884d6a0b
...@@ -5,7 +5,7 @@ config DRM_PANEL ...@@ -5,7 +5,7 @@ config DRM_PANEL
Panel registration and lookup framework. Panel registration and lookup framework.
menu "Display Panels" menu "Display Panels"
depends on DRM_PANEL depends on DRM && DRM_PANEL
config DRM_PANEL_SIMPLE config DRM_PANEL_SIMPLE
tristate "support for simple panels" tristate "support for simple panels"
...@@ -18,14 +18,12 @@ config DRM_PANEL_SIMPLE ...@@ -18,14 +18,12 @@ config DRM_PANEL_SIMPLE
config DRM_PANEL_LD9040 config DRM_PANEL_LD9040
tristate "LD9040 RGB/SPI panel" tristate "LD9040 RGB/SPI panel"
depends on DRM && DRM_PANEL
depends on OF depends on OF
select SPI select SPI
select VIDEOMODE_HELPERS select VIDEOMODE_HELPERS
config DRM_PANEL_S6E8AA0 config DRM_PANEL_S6E8AA0
tristate "S6E8AA0 DSI video mode panel" tristate "S6E8AA0 DSI video mode panel"
depends on DRM && DRM_PANEL
depends on OF depends on OF
select DRM_MIPI_DSI select DRM_MIPI_DSI
select VIDEOMODE_HELPERS select VIDEOMODE_HELPERS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment