Commit 8c5dc8d9 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Lee Jones

video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol

We have two *_CLASS_DEVICE kernel config options (LCD_CLASS_DEVICE
and BACKLIGHT_LCD_DEVICE) that do the same job.
The patch removes useless BACKLIGHT_LCD_SUPPORT option
and converts LCD_CLASS_DEVICE into a menu.
Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Acked-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 9e98c678
...@@ -195,7 +195,6 @@ config I2C_EEPROM_AT24 ...@@ -195,7 +195,6 @@ config I2C_EEPROM_AT24
config LCD_BACKLIGHT config LCD_BACKLIGHT
tristate "LCD Backlight support" tristate "LCD Backlight support"
select BACKLIGHT_LCD_SUPPORT
select BACKLIGHT_PWM select BACKLIGHT_PWM
endmenu endmenu
......
...@@ -194,7 +194,6 @@ config DRM_RADEON ...@@ -194,7 +194,6 @@ config DRM_RADEON
select POWER_SUPPLY select POWER_SUPPLY
select HWMON select HWMON
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
select INTERVAL_TREE select INTERVAL_TREE
help help
Choose this option if you have an ATI Radeon graphics card. There Choose this option if you have an ATI Radeon graphics card. There
...@@ -215,7 +214,6 @@ config DRM_AMDGPU ...@@ -215,7 +214,6 @@ config DRM_AMDGPU
select POWER_SUPPLY select POWER_SUPPLY
select HWMON select HWMON
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
select INTERVAL_TREE select INTERVAL_TREE
select CHASH select CHASH
help help
......
...@@ -76,7 +76,6 @@ config DRM_PARADE_PS8622 ...@@ -76,7 +76,6 @@ config DRM_PARADE_PS8622
depends on OF depends on OF
select DRM_PANEL select DRM_PANEL
select DRM_KMS_HELPER select DRM_KMS_HELPER
select BACKLIGHT_LCD_SUPPORT
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
---help--- ---help---
Parade eDP-LVDS bridge chip driver. Parade eDP-LVDS bridge chip driver.
......
...@@ -2,7 +2,6 @@ config DRM_FSL_DCU ...@@ -2,7 +2,6 @@ config DRM_FSL_DCU
tristate "DRM Support for Freescale DCU" tristate "DRM Support for Freescale DCU"
depends on DRM && OF && ARM && COMMON_CLK depends on DRM && OF && ARM && COMMON_CLK
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
select DRM_KMS_HELPER select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER select DRM_KMS_CMA_HELPER
select DRM_PANEL select DRM_PANEL
......
...@@ -15,7 +15,6 @@ config DRM_I915 ...@@ -15,7 +15,6 @@ config DRM_I915
select IRQ_WORK select IRQ_WORK
# i915 depends on ACPI_VIDEO when ACPI is enabled # i915 depends on ACPI_VIDEO when ACPI is enabled
# but for select to work, need to select ACPI_VIDEO's dependencies, ick # but for select to work, need to select ACPI_VIDEO's dependencies, ick
select BACKLIGHT_LCD_SUPPORT if ACPI
select BACKLIGHT_CLASS_DEVICE if ACPI select BACKLIGHT_CLASS_DEVICE if ACPI
select INPUT if ACPI select INPUT if ACPI
select ACPI_VIDEO if ACPI select ACPI_VIDEO if ACPI
......
...@@ -5,14 +5,12 @@ config DRM_NOUVEAU ...@@ -5,14 +5,12 @@ config DRM_NOUVEAU
select DRM_KMS_HELPER select DRM_KMS_HELPER
select DRM_TTM select DRM_TTM
select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
select BACKLIGHT_LCD_SUPPORT if DRM_NOUVEAU_BACKLIGHT
select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
select X86_PLATFORM_DEVICES if ACPI && X86 select X86_PLATFORM_DEVICES if ACPI && X86
select ACPI_WMI if ACPI && X86 select ACPI_WMI if ACPI && X86
select MXM_WMI if ACPI && X86 select MXM_WMI if ACPI && X86
select POWER_SUPPLY select POWER_SUPPLY
# Similar to i915, we need to select ACPI_VIDEO and it's dependencies # Similar to i915, we need to select ACPI_VIDEO and it's dependencies
select BACKLIGHT_LCD_SUPPORT if ACPI && X86
select BACKLIGHT_CLASS_DEVICE if ACPI && X86 select BACKLIGHT_CLASS_DEVICE if ACPI && X86
select INPUT if ACPI && X86 select INPUT if ACPI && X86
select THERMAL if ACPI && X86 select THERMAL if ACPI && X86
......
...@@ -4,7 +4,6 @@ config DRM_SHMOBILE ...@@ -4,7 +4,6 @@ config DRM_SHMOBILE
depends on DRM && ARM depends on DRM && ARM
depends on ARCH_SHMOBILE || COMPILE_TEST depends on ARCH_SHMOBILE || COMPILE_TEST
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
select DRM_KMS_HELPER select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER select DRM_KMS_CMA_HELPER
select DRM_GEM_CMA_HELPER select DRM_GEM_CMA_HELPER
......
...@@ -8,7 +8,6 @@ config DRM_TILCDC ...@@ -8,7 +8,6 @@ config DRM_TILCDC
select DRM_PANEL_BRIDGE select DRM_PANEL_BRIDGE
select VIDEOMODE_HELPERS select VIDEOMODE_HELPERS
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
help help
Choose this option if you have an TI SoC with LCDC display Choose this option if you have an TI SoC with LCDC display
controller, for example AM33xx in beagle-bone, DA8xx, or controller, for example AM33xx in beagle-bone, DA8xx, or
......
...@@ -2,7 +2,6 @@ config FB_OLPC_DCON ...@@ -2,7 +2,6 @@ config FB_OLPC_DCON
tristate "One Laptop Per Child Display CONtroller support" tristate "One Laptop Per Child Display CONtroller support"
depends on OLPC && FB depends on OLPC && FB
depends on I2C depends on I2C
depends on BACKLIGHT_LCD_SUPPORT
depends on (GPIO_CS5535 || GPIO_CS5535=n) depends on (GPIO_CS5535 || GPIO_CS5535=n)
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
help help
......
...@@ -142,7 +142,6 @@ config USB_FTDI_ELAN ...@@ -142,7 +142,6 @@ config USB_FTDI_ELAN
config USB_APPLEDISPLAY config USB_APPLEDISPLAY
tristate "Apple Cinema Display support" tristate "Apple Cinema Display support"
select BACKLIGHT_LCD_SUPPORT
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
help help
Say Y here if you want to control the backlight of Apple Cinema Say Y here if you want to control the backlight of Apple Cinema
......
...@@ -2,13 +2,7 @@ ...@@ -2,13 +2,7 @@
# Backlight & LCD drivers configuration # Backlight & LCD drivers configuration
# #
menuconfig BACKLIGHT_LCD_SUPPORT menu "Backlight & LCD device support"
bool "Backlight & LCD device support"
help
Enable this to be able to choose the drivers for controlling the
backlight and the LCD panel on some platforms, for example on PDAs.
if BACKLIGHT_LCD_SUPPORT
# #
# LCD # LCD
...@@ -466,4 +460,4 @@ config BACKLIGHT_RAVE_SP ...@@ -466,4 +460,4 @@ config BACKLIGHT_RAVE_SP
endif # BACKLIGHT_CLASS_DEVICE endif # BACKLIGHT_CLASS_DEVICE
endif # BACKLIGHT_LCD_SUPPORT endmenu
...@@ -186,7 +186,6 @@ config FB_MACMODES ...@@ -186,7 +186,6 @@ config FB_MACMODES
config FB_BACKLIGHT config FB_BACKLIGHT
tristate tristate
depends on FB depends on FB
select BACKLIGHT_LCD_SUPPORT
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
config FB_MODE_HELPERS config FB_MODE_HELPERS
...@@ -281,7 +280,6 @@ config FB_ARMCLCD ...@@ -281,7 +280,6 @@ config FB_ARMCLCD
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
select FB_MODE_HELPERS if OF select FB_MODE_HELPERS if OF
select VIDEOMODE_HELPERS if OF select VIDEOMODE_HELPERS if OF
select BACKLIGHT_LCD_SUPPORT if OF
select BACKLIGHT_CLASS_DEVICE if OF select BACKLIGHT_CLASS_DEVICE if OF
help help
This framebuffer device driver is for the ARM PrimeCell PL110 This framebuffer device driver is for the ARM PrimeCell PL110
...@@ -315,7 +313,6 @@ config FB_ACORN ...@@ -315,7 +313,6 @@ config FB_ACORN
config FB_CLPS711X config FB_CLPS711X
tristate "CLPS711X LCD support" tristate "CLPS711X LCD support"
depends on FB && (ARCH_CLPS711X || COMPILE_TEST) depends on FB && (ARCH_CLPS711X || COMPILE_TEST)
select BACKLIGHT_LCD_SUPPORT
select FB_MODE_HELPERS select FB_MODE_HELPERS
select FB_SYS_FILLRECT select FB_SYS_FILLRECT
select FB_SYS_COPYAREA select FB_SYS_COPYAREA
...@@ -343,7 +340,6 @@ config FB_SA1100 ...@@ -343,7 +340,6 @@ config FB_SA1100
config FB_IMX config FB_IMX
tristate "Freescale i.MX1/21/25/27 LCD support" tristate "Freescale i.MX1/21/25/27 LCD support"
depends on FB && ARCH_MXC depends on FB && ARCH_MXC
select BACKLIGHT_LCD_SUPPORT
select LCD_CLASS_DEVICE select LCD_CLASS_DEVICE
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
...@@ -2192,7 +2188,6 @@ config FB_MX3 ...@@ -2192,7 +2188,6 @@ config FB_MX3
tristate "MX3 Framebuffer support" tristate "MX3 Framebuffer support"
depends on FB && MX3_IPU depends on FB && MX3_IPU
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
select BACKLIGHT_LCD_SUPPORT
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
......
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