aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-06-13 09:06:11 -0400
committerThierry Reding <treding@nvidia.com>2014-07-14 04:24:57 -0400
commit937ca28445644cb9a5baf95b60b3482f2b751023 (patch)
tree3a14e2312c459063112f68f40934571ebdd7e875
parent884d6a0b558c9c31fdf0d950bd07a2c804876445 (diff)
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: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/panel/Kconfig4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig
index 4ec874da5668..d83958d39f43 100644
--- a/drivers/gpu/drm/panel/Kconfig
+++ b/drivers/gpu/drm/panel/Kconfig
@@ -5,7 +5,7 @@ config DRM_PANEL
5 Panel registration and lookup framework. 5 Panel registration and lookup framework.
6 6
7menu "Display Panels" 7menu "Display Panels"
8 depends on DRM_PANEL 8 depends on DRM && DRM_PANEL
9 9
10config DRM_PANEL_SIMPLE 10config DRM_PANEL_SIMPLE
11 tristate "support for simple panels" 11 tristate "support for simple panels"
@@ -18,14 +18,12 @@ config DRM_PANEL_SIMPLE
18 18
19config DRM_PANEL_LD9040 19config DRM_PANEL_LD9040
20 tristate "LD9040 RGB/SPI panel" 20 tristate "LD9040 RGB/SPI panel"
21 depends on DRM && DRM_PANEL
22 depends on OF 21 depends on OF
23 select SPI 22 select SPI
24 select VIDEOMODE_HELPERS 23 select VIDEOMODE_HELPERS
25 24
26config DRM_PANEL_S6E8AA0 25config DRM_PANEL_S6E8AA0
27 tristate "S6E8AA0 DSI video mode panel" 26 tristate "S6E8AA0 DSI video mode panel"
28 depends on DRM && DRM_PANEL
29 depends on OF 27 depends on OF
30 select DRM_MIPI_DSI 28 select DRM_MIPI_DSI
31 select VIDEOMODE_HELPERS 29 select VIDEOMODE_HELPERS