drm/panel: make DRM_PANEL_LD9040 depend on SPI
Subsystems (3)
PATCH 2/2 drm/panel: make DRM_PANEL_LD9040 depend on SPI
Rather than DRM_PANEL_LD9040 selecting SPI, which then results in an increase in the probability of Kconf reporting circular dependencies (we're one "select" away from that right now), make this depend on SPI instead. This is akin to having some driver select DRM.
Having some drivers depend on a subsystem, and other drivers select a subsystem is a recipe for circular dependencies, and there's really no need for it.
The potential circular dependency (which can be caused today by the addition of selecting DRM_PANEL from DRM_IMX_LDB) is:
symbol DMADEVICES is selected by SAMSUNG_DMADEV symbol SAMSUNG_DMADEV is selected by S3C64XX_PL080 symbol S3C64XX_PL080 is selected by SPI_S3C64XX symbol SPI_S3C64XX depends on SPI
symbol SPI is selected by DRM_PANEL_LD9040 symbol DRM_PANEL_LD9040 depends on DRM_PANEL symbol DRM_PANEL is selected by DRM_IMX_LDB symbol DRM_IMX_LDB depends on MFD_SYSCON
symbol MFD_SYSCON is selected by POWER_RESET_KEYSTONE symbol POWER_RESET_KEYSTONE depends on POWER_SUPPLY symbol POWER_SUPPLY is selected by HID_SONY symbol HID_SONY depends on NEW_LEDS
symbol NEW_LEDS is selected by BACKLIGHT_ADP8860 symbol BACKLIGHT_ADP8860 depends on BACKLIGHT_CLASS_DEVICE symbol BACKLIGHT_CLASS_DEVICE is selected by FB_MX3 symbol FB_MX3 depends on MX3_IPU
symbol MX3_IPU depends on DMADEVICES
--- drivers/gpu/drm/panel/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/panel/Kconfig +1 -2
@@ -18,8 +18,7 @@ config DRM_PANEL_SIMPLE config DRM_PANEL_LD9040 tristate "LD9040 RGB/SPI panel" - depends on OF - select SPI + depends on OF && SPI select VIDEOMODE_HELPERS config DRM_PANEL_S6E8AA0
Signature · 1 line
1.8.3.1
Quoted 30 lines · On Thursday 12 June 2014 16:50:20 Russell King wrote:
Rather than
DRM_PANEL_LD9040selecting SPI, which then results in an increase in the probability of Kconf reporting circular dependencies (we're one "select" away from that right now), make this depend on SPI instead. This is akin to having some driver select DRM.Having some drivers depend on a subsystem, and other drivers select a subsystem is a recipe for circular dependencies, and there's really no need for it.
The potential circular dependency (which can be caused today by the addition of selecting
DRM_PANELfromDRM_IMX_LDB) is:symbol DMADEVICES is selected by
SAMSUNG_DMADEVsymbolSAMSUNG_DMADEVis selected byS3C64XX_PL080symbolS3C64XX_PL080is selected bySPI_S3C64XXsymbolSPI_S3C64XXdepends on SPI
symbol SPI is selected byDRM_PANEL_LD9040symbolDRM_PANEL_LD9040depends onDRM_PANELsymbolDRM_PANELis selected byDRM_IMX_LDBsymbolDRM_IMX_LDBdepends onMFD_SYSCON
symbolMFD_SYSCONis selected byPOWER_RESET_KEYSTONEsymbolPOWER_RESET_KEYSTONEdepends onPOWER_SUPPLYsymbolPOWER_SUPPLYis selected byHID_SONYsymbolHID_SONYdepends onNEW_LEDS
symbolNEW_LEDSis selected byBACKLIGHT_ADP8860symbolBACKLIGHT_ADP8860depends onBACKLIGHT_CLASS_DEVICEsymbolBACKLIGHT_CLASS_DEVICEis selected byFB_MX3symbolFB_MX3depends onMX3_IPU
symbolMX3_IPUdepends on DMADEVICES
Quoted 2 lines
Signed-off-by Russell King <[email protected]>