drm/panel: consolidate unnecessary explicit dependencies
Subsystems (3)
PATCH v3 1/2 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.
--- drivers/gpu/drm/panel/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/panel/Kconfig +1 -3
@@ -5,7 +5,7 @@ config DRM_PANEL Panel registration and lookup framework. menu "Display Panels" - depends on DRM_PANEL + depends on DRM && DRM_PANEL config DRM_PANEL_SIMPLE tristate "support for simple panels"
@@ -18,14 +18,12 @@ config DRM_PANEL_SIMPLE config DRM_PANEL_LD9040 tristate "LD9040 RGB/SPI panel" - depends on DRM && DRM_PANEL depends on OF select SPI select VIDEOMODE_HELPERS config DRM_PANEL_S6E8AA0 tristate "S6E8AA0 DSI video mode panel" - depends on DRM && DRM_PANEL depends on OF select DRM_MIPI_DSI select VIDEOMODE_HELPERS
Signature · 1 line
1.8.3.1
Quoted 11 lines · On Friday 13 June 2014 14:06:11 Russell King wrote:
DRM_PANEL_LD9040andDRM_PANEL_S6E8AA0both explicitly depended onDRM_PANEL&& DRM, whereasDRM_PANEL_SIMPLErelies 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 onDRM_PANEL&& DRM without this needing to be explicitly stated against every entry.Signed-off-by Russell King <[email protected]>
Thierry Reding
AppliedQuoted 9 lines · Russell King
DRM_PANEL_LD9040andDRM_PANEL_S6E8AA0both explicitly depended onDRM_PANEL&& DRM, whereasDRM_PANEL_SIMPLErelies 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 onDRM_PANEL&& DRM without this needing to be explicitly stated against every entry.
Quoted 4 lines
Signed-off-by Russell King <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140613/c9420170/attachment-0001.sig>