From 03dd4cb26d967f9588437b0fc9cc0e8353322bb7 Mon Sep 17 00:00:00 2001 From: AndrĂ© Fabian Silva Delgado Date: Fri, 25 Mar 2016 03:53:42 -0300 Subject: Linux-libre 4.5-gnu --- drivers/video/backlight/adp8860_bl.c | 18 +- drivers/video/backlight/adp8870_bl.c | 10 +- drivers/video/backlight/gpio_backlight.c | 10 +- drivers/video/backlight/pwm_bl.c | 28 +- drivers/video/backlight/tps65217_bl.c | 9 + drivers/video/fbdev/Kconfig | 17 +- drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/auo_k190x.c | 11 +- drivers/video/fbdev/core/Makefile | 2 +- drivers/video/fbdev/core/fb_defio.c | 4 +- drivers/video/fbdev/core/fbmem.c | 14 +- drivers/video/fbdev/da8xx-fb.c | 6 +- drivers/video/fbdev/exynos/s6e8ax0.c | 13 +- drivers/video/fbdev/geode/display_gx1.c | 2 +- drivers/video/fbdev/geode/display_gx1.h | 2 +- drivers/video/fbdev/geode/geodefb.h | 4 +- drivers/video/fbdev/geode/video_cs5530.c | 2 +- drivers/video/fbdev/geode/video_cs5530.h | 2 +- drivers/video/fbdev/i740fb.c | 8 +- drivers/video/fbdev/imxfb.c | 15 + drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 3 +- drivers/video/fbdev/ocfb.c | 4 +- drivers/video/fbdev/omap2/Kconfig | 5 - drivers/video/fbdev/omap2/Makefile | 6 +- drivers/video/fbdev/omap2/displays-new/Kconfig | 86 - drivers/video/fbdev/omap2/displays-new/Makefile | 14 - .../fbdev/omap2/displays-new/connector-analog-tv.c | 320 -- .../video/fbdev/omap2/displays-new/connector-dvi.c | 398 -- .../fbdev/omap2/displays-new/connector-hdmi.c | 348 -- .../fbdev/omap2/displays-new/encoder-opa362.c | 278 - .../fbdev/omap2/displays-new/encoder-tfp410.c | 320 -- .../fbdev/omap2/displays-new/encoder-tpd12s015.c | 379 -- drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 330 -- .../video/fbdev/omap2/displays-new/panel-dsi-cm.c | 1388 ----- .../omap2/displays-new/panel-lgphilips-lb035q02.c | 404 -- .../omap2/displays-new/panel-nec-nl8048hl11.c | 437 -- .../omap2/displays-new/panel-sharp-ls037v7dw01.c | 415 -- .../omap2/displays-new/panel-sony-acx565akm.c | 917 ---- .../omap2/displays-new/panel-tpo-td028ttec1.c | 511 -- .../omap2/displays-new/panel-tpo-td043mtea1.c | 686 --- drivers/video/fbdev/omap2/dss/Kconfig | 135 - drivers/video/fbdev/omap2/dss/Makefile | 18 - drivers/video/fbdev/omap2/dss/apply.c | 1702 ------ drivers/video/fbdev/omap2/dss/core.c | 343 -- drivers/video/fbdev/omap2/dss/dispc-compat.c | 667 --- drivers/video/fbdev/omap2/dss/dispc-compat.h | 30 - drivers/video/fbdev/omap2/dss/dispc.c | 4135 --------------- drivers/video/fbdev/omap2/dss/dispc.h | 916 ---- drivers/video/fbdev/omap2/dss/dispc_coefs.c | 325 -- drivers/video/fbdev/omap2/dss/display-sysfs.c | 356 -- drivers/video/fbdev/omap2/dss/display.c | 338 -- drivers/video/fbdev/omap2/dss/dpi.c | 899 ---- drivers/video/fbdev/omap2/dss/dsi.c | 5607 -------------------- drivers/video/fbdev/omap2/dss/dss-of.c | 183 - drivers/video/fbdev/omap2/dss/dss.c | 1323 ----- drivers/video/fbdev/omap2/dss/dss.h | 472 -- drivers/video/fbdev/omap2/dss/dss_features.c | 962 ---- drivers/video/fbdev/omap2/dss/dss_features.h | 105 - drivers/video/fbdev/omap2/dss/hdmi.h | 370 -- drivers/video/fbdev/omap2/dss/hdmi4.c | 839 --- drivers/video/fbdev/omap2/dss/hdmi4_core.c | 904 ---- drivers/video/fbdev/omap2/dss/hdmi4_core.h | 273 - drivers/video/fbdev/omap2/dss/hdmi5.c | 876 --- drivers/video/fbdev/omap2/dss/hdmi5_core.c | 916 ---- drivers/video/fbdev/omap2/dss/hdmi5_core.h | 304 -- drivers/video/fbdev/omap2/dss/hdmi_common.c | 148 - drivers/video/fbdev/omap2/dss/hdmi_phy.c | 247 - drivers/video/fbdev/omap2/dss/hdmi_pll.c | 255 - drivers/video/fbdev/omap2/dss/hdmi_wp.c | 282 - drivers/video/fbdev/omap2/dss/manager-sysfs.c | 531 -- drivers/video/fbdev/omap2/dss/manager.c | 263 - drivers/video/fbdev/omap2/dss/omapdss-boot-init.c | 227 - drivers/video/fbdev/omap2/dss/output.c | 267 - drivers/video/fbdev/omap2/dss/overlay-sysfs.c | 456 -- drivers/video/fbdev/omap2/dss/overlay.c | 202 - drivers/video/fbdev/omap2/dss/pll.c | 389 -- drivers/video/fbdev/omap2/dss/rfbi.c | 1078 ---- drivers/video/fbdev/omap2/dss/sdi.c | 454 -- drivers/video/fbdev/omap2/dss/venc.c | 1009 ---- drivers/video/fbdev/omap2/dss/video-pll.c | 211 - drivers/video/fbdev/omap2/omapfb/Kconfig | 14 +- drivers/video/fbdev/omap2/omapfb/Makefile | 3 + drivers/video/fbdev/omap2/omapfb/displays/Kconfig | 86 + drivers/video/fbdev/omap2/omapfb/displays/Makefile | 14 + .../omap2/omapfb/displays/connector-analog-tv.c | 320 ++ .../fbdev/omap2/omapfb/displays/connector-dvi.c | 398 ++ .../fbdev/omap2/omapfb/displays/connector-hdmi.c | 348 ++ .../fbdev/omap2/omapfb/displays/encoder-opa362.c | 278 + .../fbdev/omap2/omapfb/displays/encoder-tfp410.c | 320 ++ .../omap2/omapfb/displays/encoder-tpd12s015.c | 328 ++ .../video/fbdev/omap2/omapfb/displays/panel-dpi.c | 328 ++ .../fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 1388 +++++ .../omapfb/displays/panel-lgphilips-lb035q02.c | 404 ++ .../omap2/omapfb/displays/panel-nec-nl8048hl11.c | 437 ++ .../omapfb/displays/panel-sharp-ls037v7dw01.c | 415 ++ .../omap2/omapfb/displays/panel-sony-acx565akm.c | 917 ++++ .../omap2/omapfb/displays/panel-tpo-td028ttec1.c | 511 ++ .../omap2/omapfb/displays/panel-tpo-td043mtea1.c | 686 +++ drivers/video/fbdev/omap2/omapfb/dss/Kconfig | 129 + drivers/video/fbdev/omap2/omapfb/dss/Makefile | 18 + drivers/video/fbdev/omap2/omapfb/dss/apply.c | 1702 ++++++ drivers/video/fbdev/omap2/omapfb/dss/core.c | 343 ++ .../video/fbdev/omap2/omapfb/dss/dispc-compat.c | 667 +++ .../video/fbdev/omap2/omapfb/dss/dispc-compat.h | 30 + drivers/video/fbdev/omap2/omapfb/dss/dispc.c | 4234 +++++++++++++++ drivers/video/fbdev/omap2/omapfb/dss/dispc.h | 918 ++++ drivers/video/fbdev/omap2/omapfb/dss/dispc_coefs.c | 325 ++ .../video/fbdev/omap2/omapfb/dss/display-sysfs.c | 356 ++ drivers/video/fbdev/omap2/omapfb/dss/display.c | 338 ++ drivers/video/fbdev/omap2/omapfb/dss/dpi.c | 899 ++++ drivers/video/fbdev/omap2/omapfb/dss/dsi.c | 5607 ++++++++++++++++++++ drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 183 + drivers/video/fbdev/omap2/omapfb/dss/dss.c | 1329 +++++ drivers/video/fbdev/omap2/omapfb/dss/dss.h | 468 ++ .../video/fbdev/omap2/omapfb/dss/dss_features.c | 951 ++++ .../video/fbdev/omap2/omapfb/dss/dss_features.h | 108 + drivers/video/fbdev/omap2/omapfb/dss/hdmi.h | 370 ++ drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | 839 +++ drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c | 904 ++++ drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h | 273 + drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c | 876 +++ drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 916 ++++ drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h | 304 ++ drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c | 148 + drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c | 247 + drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c | 255 + drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c | 282 + .../video/fbdev/omap2/omapfb/dss/manager-sysfs.c | 531 ++ drivers/video/fbdev/omap2/omapfb/dss/manager.c | 263 + .../fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 225 + drivers/video/fbdev/omap2/omapfb/dss/output.c | 267 + .../video/fbdev/omap2/omapfb/dss/overlay-sysfs.c | 456 ++ drivers/video/fbdev/omap2/omapfb/dss/overlay.c | 202 + drivers/video/fbdev/omap2/omapfb/dss/pll.c | 389 ++ drivers/video/fbdev/omap2/omapfb/dss/rfbi.c | 1078 ++++ drivers/video/fbdev/omap2/omapfb/dss/sdi.c | 454 ++ drivers/video/fbdev/omap2/omapfb/dss/venc.c | 997 ++++ drivers/video/fbdev/omap2/omapfb/dss/video-pll.c | 211 + drivers/video/fbdev/omap2/omapfb/vrfb.c | 399 ++ drivers/video/fbdev/omap2/vrfb.c | 399 -- drivers/video/fbdev/pxafb.c | 210 +- drivers/video/fbdev/pxafb.h | 2 + drivers/video/fbdev/riva/fbdev.c | 1 + drivers/video/fbdev/sh_mobile_hdmi.c | 1489 ------ drivers/video/fbdev/simplefb.c | 120 +- drivers/video/fbdev/sm712fb.c | 16 +- drivers/video/fbdev/via/via-gpio.c | 19 +- 147 files changed, 37125 insertions(+), 38261 deletions(-) delete mode 100644 drivers/video/fbdev/omap2/displays-new/Kconfig delete mode 100644 drivers/video/fbdev/omap2/displays-new/Makefile delete mode 100644 drivers/video/fbdev/omap2/displays-new/connector-analog-tv.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/connector-dvi.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/connector-hdmi.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/encoder-opa362.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/encoder-tfp410.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/encoder-tpd12s015.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-dpi.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-dsi-cm.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-lgphilips-lb035q02.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-nec-nl8048hl11.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-sharp-ls037v7dw01.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-sony-acx565akm.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-tpo-td028ttec1.c delete mode 100644 drivers/video/fbdev/omap2/displays-new/panel-tpo-td043mtea1.c delete mode 100644 drivers/video/fbdev/omap2/dss/Kconfig delete mode 100644 drivers/video/fbdev/omap2/dss/Makefile delete mode 100644 drivers/video/fbdev/omap2/dss/apply.c delete mode 100644 drivers/video/fbdev/omap2/dss/core.c delete mode 100644 drivers/video/fbdev/omap2/dss/dispc-compat.c delete mode 100644 drivers/video/fbdev/omap2/dss/dispc-compat.h delete mode 100644 drivers/video/fbdev/omap2/dss/dispc.c delete mode 100644 drivers/video/fbdev/omap2/dss/dispc.h delete mode 100644 drivers/video/fbdev/omap2/dss/dispc_coefs.c delete mode 100644 drivers/video/fbdev/omap2/dss/display-sysfs.c delete mode 100644 drivers/video/fbdev/omap2/dss/display.c delete mode 100644 drivers/video/fbdev/omap2/dss/dpi.c delete mode 100644 drivers/video/fbdev/omap2/dss/dsi.c delete mode 100644 drivers/video/fbdev/omap2/dss/dss-of.c delete mode 100644 drivers/video/fbdev/omap2/dss/dss.c delete mode 100644 drivers/video/fbdev/omap2/dss/dss.h delete mode 100644 drivers/video/fbdev/omap2/dss/dss_features.c delete mode 100644 drivers/video/fbdev/omap2/dss/dss_features.h delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi.h delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi4.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi4_core.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi4_core.h delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi5.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi5_core.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi5_core.h delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi_common.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi_phy.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi_pll.c delete mode 100644 drivers/video/fbdev/omap2/dss/hdmi_wp.c delete mode 100644 drivers/video/fbdev/omap2/dss/manager-sysfs.c delete mode 100644 drivers/video/fbdev/omap2/dss/manager.c delete mode 100644 drivers/video/fbdev/omap2/dss/omapdss-boot-init.c delete mode 100644 drivers/video/fbdev/omap2/dss/output.c delete mode 100644 drivers/video/fbdev/omap2/dss/overlay-sysfs.c delete mode 100644 drivers/video/fbdev/omap2/dss/overlay.c delete mode 100644 drivers/video/fbdev/omap2/dss/pll.c delete mode 100644 drivers/video/fbdev/omap2/dss/rfbi.c delete mode 100644 drivers/video/fbdev/omap2/dss/sdi.c delete mode 100644 drivers/video/fbdev/omap2/dss/venc.c delete mode 100644 drivers/video/fbdev/omap2/dss/video-pll.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/Kconfig create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/Makefile create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c create mode 100644 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/Kconfig create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/Makefile create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/apply.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/core.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dispc.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dispc.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dispc_coefs.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/display.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dpi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dsi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dss.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dss.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dss_features.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/dss_features.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/manager.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/output.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/overlay.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/pll.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/rfbi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/sdi.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/venc.c create mode 100644 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c create mode 100644 drivers/video/fbdev/omap2/omapfb/vrfb.c delete mode 100644 drivers/video/fbdev/omap2/vrfb.c delete mode 100644 drivers/video/fbdev/sh_mobile_hdmi.c (limited to 'drivers/video') diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c index 98ffe71e8..510e559c0 100644 --- a/drivers/video/backlight/adp8860_bl.c +++ b/drivers/video/backlight/adp8860_bl.c @@ -566,11 +566,13 @@ static ssize_t adp8860_bl_ambient_light_level_show(struct device *dev, mutex_lock(&data->lock); error = adp8860_read(data->client, ADP8860_PH1LEVL, ®_val); - ret_val = reg_val; - error |= adp8860_read(data->client, ADP8860_PH1LEVH, ®_val); + if (!error) { + ret_val = reg_val; + error = adp8860_read(data->client, ADP8860_PH1LEVH, ®_val); + } mutex_unlock(&data->lock); - if (error < 0) + if (error) return error; /* Return 13-bit conversion value for the first light sensor */ @@ -621,10 +623,12 @@ static ssize_t adp8860_bl_ambient_light_zone_store(struct device *dev, /* Set user supplied ambient light zone */ mutex_lock(&data->lock); - adp8860_read(data->client, ADP8860_CFGR, ®_val); - reg_val &= ~(CFGR_BLV_MASK << CFGR_BLV_SHIFT); - reg_val |= (val - 1) << CFGR_BLV_SHIFT; - adp8860_write(data->client, ADP8860_CFGR, reg_val); + ret = adp8860_read(data->client, ADP8860_CFGR, ®_val); + if (!ret) { + reg_val &= ~(CFGR_BLV_MASK << CFGR_BLV_SHIFT); + reg_val |= (val - 1) << CFGR_BLV_SHIFT; + adp8860_write(data->client, ADP8860_CFGR, reg_val); + } mutex_unlock(&data->lock); } diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c index 9d738352d..21acac90f 100644 --- a/drivers/video/backlight/adp8870_bl.c +++ b/drivers/video/backlight/adp8870_bl.c @@ -807,10 +807,12 @@ static ssize_t adp8870_bl_ambient_light_zone_store(struct device *dev, /* Set user supplied ambient light zone */ mutex_lock(&data->lock); - adp8870_read(data->client, ADP8870_CFGR, ®_val); - reg_val &= ~(CFGR_BLV_MASK << CFGR_BLV_SHIFT); - reg_val |= (val - 1) << CFGR_BLV_SHIFT; - adp8870_write(data->client, ADP8870_CFGR, reg_val); + ret = adp8870_read(data->client, ADP8870_CFGR, ®_val); + if (!ret) { + reg_val &= ~(CFGR_BLV_MASK << CFGR_BLV_SHIFT); + reg_val |= (val - 1) << CFGR_BLV_SHIFT; + adp8870_write(data->client, ADP8870_CFGR, reg_val); + } mutex_unlock(&data->lock); } diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 5fbbc2ebd..18134416b 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -89,6 +89,7 @@ static int gpio_backlight_probe(struct platform_device *pdev) struct backlight_device *bl; struct gpio_backlight *gbl; struct device_node *np = pdev->dev.of_node; + unsigned long flags = GPIOF_DIR_OUT; int ret; if (!pdata && !np) { @@ -114,9 +115,12 @@ static int gpio_backlight_probe(struct platform_device *pdev) gbl->def_value = pdata->def_value; } - ret = devm_gpio_request_one(gbl->dev, gbl->gpio, GPIOF_DIR_OUT | - (gbl->active ? GPIOF_INIT_LOW - : GPIOF_INIT_HIGH), + if (gbl->active) + flags |= gbl->def_value ? GPIOF_INIT_HIGH : GPIOF_INIT_LOW; + else + flags |= gbl->def_value ? GPIOF_INIT_LOW : GPIOF_INIT_HIGH; + + ret = devm_gpio_request_one(gbl->dev, gbl->gpio, flags, pdata ? pdata->name : "backlight"); if (ret < 0) { dev_err(&pdev->dev, "unable to request GPIO\n"); diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index ae3c6b6fd..64f9e1b86 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -198,7 +198,9 @@ static int pwm_backlight_probe(struct platform_device *pdev) struct platform_pwm_backlight_data defdata; struct backlight_properties props; struct backlight_device *bl; + struct device_node *node = pdev->dev.of_node; struct pwm_bl_data *pb; + int initial_blank = FB_BLANK_UNBLANK; int ret; if (!data) { @@ -242,7 +244,7 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->enabled = false; pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", - GPIOD_OUT_HIGH); + GPIOD_ASIS); if (IS_ERR(pb->enable_gpio)) { ret = PTR_ERR(pb->enable_gpio); goto err_alloc; @@ -264,15 +266,32 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->enable_gpio = gpio_to_desc(data->enable_gpio); } + if (pb->enable_gpio) { + /* + * If the driver is probed from the device tree and there is a + * phandle link pointing to the backlight node, it is safe to + * assume that another driver will enable the backlight at the + * appropriate time. Therefore, if it is disabled, keep it so. + */ + if (node && node->phandle && + gpiod_get_direction(pb->enable_gpio) == GPIOF_DIR_OUT && + gpiod_get_value(pb->enable_gpio) == 0) + initial_blank = FB_BLANK_POWERDOWN; + else + gpiod_direction_output(pb->enable_gpio, 1); + } + pb->power_supply = devm_regulator_get(&pdev->dev, "power"); if (IS_ERR(pb->power_supply)) { ret = PTR_ERR(pb->power_supply); goto err_alloc; } + if (node && node->phandle && !regulator_is_enabled(pb->power_supply)) + initial_blank = FB_BLANK_POWERDOWN; + pb->pwm = devm_pwm_get(&pdev->dev, NULL); - if (IS_ERR(pb->pwm) && PTR_ERR(pb->pwm) != -EPROBE_DEFER - && !pdev->dev.of_node) { + if (IS_ERR(pb->pwm) && PTR_ERR(pb->pwm) != -EPROBE_DEFER && !node) { dev_err(&pdev->dev, "unable to request PWM, trying legacy API\n"); pb->legacy = true; pb->pwm = pwm_request(data->pwm_id, "pwm-backlight"); @@ -309,6 +328,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) if (IS_ERR(bl)) { dev_err(&pdev->dev, "failed to register backlight\n"); ret = PTR_ERR(bl); + if (pb->legacy) + pwm_free(pb->pwm); goto err_alloc; } @@ -320,6 +341,7 @@ static int pwm_backlight_probe(struct platform_device *pdev) } bl->props.brightness = data->dft_brightness; + bl->props.power = initial_blank; backlight_update_status(bl); platform_set_drvdata(pdev, bl); diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c index 61d72bffd..fd524ad86 100644 --- a/drivers/video/backlight/tps65217_bl.c +++ b/drivers/video/backlight/tps65217_bl.c @@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id tps65217_bl_of_match[] = { + { .compatible = "ti,tps65217-bl", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, tps65217_bl_of_match); +#endif + static struct platform_driver tps65217_bl_driver = { .probe = tps65217_bl_probe, .driver = { .name = "tps65217-bl", + .of_match_table = of_match_ptr(tps65217_bl_of_match), }, }; diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index e6d16d65e..8ea45a5cd 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -5,6 +5,7 @@ menuconfig FB tristate "Support for frame buffer devices" select FB_CMDLINE + select FB_NOTIFY ---help--- The frame buffer device provides an abstraction for the graphics hardware. It represents the frame buffer of some video hardware and @@ -56,6 +57,9 @@ config FIRMWARE_EDID config FB_CMDLINE bool +config FB_NOTIFY + bool + config FB_DDC tristate depends on FB @@ -1506,6 +1510,7 @@ config FB_SIS select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_BOOT_VESA_SUPPORT if FB_SIS = y + select FB_SIS_300 if !FB_SIS_315 help This is the frame buffer device driver for the SiS 300, 315, 330 and 340 series as well as XGI V3XT, V5, V8, Z7 graphics chipsets. @@ -1880,6 +1885,8 @@ config FB_PXA select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT + select VIDEOMODE_HELPERS if OF + select FB_MODE_HELPERS if OF ---help--- Frame buffer driver for the built-in LCD controller in the Intel PXA2x0 processor. @@ -1990,16 +1997,6 @@ config FB_SH_MOBILE_LCDC ---help--- Frame buffer driver for the on-chip SH-Mobile LCD controller. -config FB_SH_MOBILE_HDMI - tristate "SuperH Mobile HDMI controller support" - depends on FB_SH_MOBILE_LCDC - select FB_MODE_HELPERS - select SOUND - select SND - select SND_SOC - ---help--- - Driver for the on-chip SH-Mobile HDMI controller. - config FB_TMIO tristate "Toshiba Mobile IO FrameBuffer support" depends on FB && (MFD_TMIO || COMPILE_TEST) diff --git a/drivers/video/fbdev/Makefile b/drivers/video/fbdev/Makefile index 50ed1b4fc..65fb15075 100644 --- a/drivers/video/fbdev/Makefile +++ b/drivers/video/fbdev/Makefile @@ -118,7 +118,6 @@ obj-$(CONFIG_FB_UDL) += udlfb.o obj-$(CONFIG_FB_SMSCUFX) += smscufx.o obj-$(CONFIG_FB_XILINX) += xilinxfb.o obj-$(CONFIG_SH_MIPI_DSI) += sh_mipi_dsi.o -obj-$(CONFIG_FB_SH_MOBILE_HDMI) += sh_mobile_hdmi.o obj-$(CONFIG_FB_SH_MOBILE_MERAM) += sh_mobile_meram.o obj-$(CONFIG_FB_SH_MOBILE_LCDC) += sh_mobile_lcdcfb.o obj-$(CONFIG_FB_OMAP) += omap/ diff --git a/drivers/video/fbdev/auo_k190x.c b/drivers/video/fbdev/auo_k190x.c index 8d2499d1c..958037466 100644 --- a/drivers/video/fbdev/auo_k190x.c +++ b/drivers/video/fbdev/auo_k190x.c @@ -773,9 +773,7 @@ static void auok190x_recover(struct auok190xfb_par *par) /* * Power-management */ - -#ifdef CONFIG_PM -static int auok190x_runtime_suspend(struct device *dev) +static int __maybe_unused auok190x_runtime_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct fb_info *info = platform_get_drvdata(pdev); @@ -822,7 +820,7 @@ finish: return 0; } -static int auok190x_runtime_resume(struct device *dev) +static int __maybe_unused auok190x_runtime_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct fb_info *info = platform_get_drvdata(pdev); @@ -856,7 +854,7 @@ static int auok190x_runtime_resume(struct device *dev) return 0; } -static int auok190x_suspend(struct device *dev) +static int __maybe_unused auok190x_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct fb_info *info = platform_get_drvdata(pdev); @@ -896,7 +894,7 @@ static int auok190x_suspend(struct device *dev) return 0; } -static int auok190x_resume(struct device *dev) +static int __maybe_unused auok190x_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct fb_info *info = platform_get_drvdata(pdev); @@ -933,7 +931,6 @@ static int auok190x_resume(struct device *dev) return 0; } -#endif const struct dev_pm_ops auok190x_pm = { SET_RUNTIME_PM_OPS(auok190x_runtime_suspend, auok190x_runtime_resume, diff --git a/drivers/video/fbdev/core/Makefile b/drivers/video/fbdev/core/Makefile index 23d86a8b7..9e3ddf225 100644 --- a/drivers/video/fbdev/core/Makefile +++ b/drivers/video/fbdev/core/Makefile @@ -1,5 +1,5 @@ -obj-y += fb_notify.o obj-$(CONFIG_FB_CMDLINE) += fb_cmdline.o +obj-$(CONFIG_FB_NOTIFY) += fb_notify.o obj-$(CONFIG_FB) += fb.o fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ modedb.o fbcvt.o diff --git a/drivers/video/fbdev/core/fb_defio.c b/drivers/video/fbdev/core/fb_defio.c index 3fc63c208..57721c731 100644 --- a/drivers/video/fbdev/core/fb_defio.c +++ b/drivers/video/fbdev/core/fb_defio.c @@ -78,13 +78,13 @@ int fb_deferred_io_fsync(struct file *file, loff_t start, loff_t end, int datasy if (!info->fbdefio) return 0; - mutex_lock(&inode->i_mutex); + inode_lock(inode); /* Kill off the delayed work */ cancel_delayed_work_sync(&info->deferred_work); /* Run it immediately */ schedule_delayed_work(&info->deferred_work, 0); - mutex_unlock(&inode->i_mutex); + inode_unlock(inode); return 0; } diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c index 0705d8883..4e73b6f6b 100644 --- a/drivers/video/fbdev/core/fbmem.c +++ b/drivers/video/fbdev/core/fbmem.c @@ -1608,6 +1608,11 @@ static int do_remove_conflicting_framebuffers(struct apertures_struct *a, return 0; } +static bool lockless_register_fb; +module_param_named_unsafe(lockless_register_fb, lockless_register_fb, bool, 0400); +MODULE_PARM_DESC(lockless_register_fb, + "Lockless framebuffer registration for debugging [default=off]"); + static int do_register_framebuffer(struct fb_info *fb_info) { int i, ret; @@ -1675,15 +1680,18 @@ static int do_register_framebuffer(struct fb_info *fb_info) registered_fb[i] = fb_info; event.info = fb_info; - console_lock(); + if (!lockless_register_fb) + console_lock(); if (!lock_fb_info(fb_info)) { - console_unlock(); + if (!lockless_register_fb) + console_unlock(); return -ENODEV; } fb_notifier_call_chain(FB_EVENT_FB_REGISTERED, &event); unlock_fb_info(fb_info); - console_unlock(); + if (!lockless_register_fb) + console_unlock(); return 0; } diff --git a/drivers/video/fbdev/da8xx-fb.c b/drivers/video/fbdev/da8xx-fb.c index 0081725c6..6b2a06d09 100644 --- a/drivers/video/fbdev/da8xx-fb.c +++ b/drivers/video/fbdev/da8xx-fb.c @@ -152,7 +152,7 @@ static void lcdc_write(unsigned int val, unsigned int addr) struct da8xx_fb_par { struct device *dev; - resource_size_t p_palette_base; + dma_addr_t p_palette_base; unsigned char *v_palette_base; dma_addr_t vram_phys; unsigned long vram_size; @@ -1428,7 +1428,7 @@ static int fb_probe(struct platform_device *device) par->vram_virt = dma_alloc_coherent(NULL, par->vram_size, - (resource_size_t *) &par->vram_phys, + &par->vram_phys, GFP_KERNEL | GFP_DMA); if (!par->vram_virt) { dev_err(&device->dev, @@ -1448,7 +1448,7 @@ static int fb_probe(struct platform_device *device) /* allocate palette buffer */ par->v_palette_base = dma_zalloc_coherent(NULL, PALETTE_SIZE, - (resource_size_t *)&par->p_palette_base, + &par->p_palette_base, GFP_KERNEL | GFP_DMA); if (!par->v_palette_base) { dev_err(&device->dev, diff --git a/drivers/video/fbdev/exynos/s6e8ax0.c b/drivers/video/fbdev/exynos/s6e8ax0.c index 95873f26e..de2f3e793 100644 --- a/drivers/video/fbdev/exynos/s6e8ax0.c +++ b/drivers/video/fbdev/exynos/s6e8ax0.c @@ -829,8 +829,7 @@ static int s6e8ax0_probe(struct mipi_dsim_lcd_device *dsim_dev) return 0; } -#ifdef CONFIG_PM -static int s6e8ax0_suspend(struct mipi_dsim_lcd_device *dsim_dev) +static int __maybe_unused s6e8ax0_suspend(struct mipi_dsim_lcd_device *dsim_dev) { struct s6e8ax0 *lcd = dev_get_drvdata(&dsim_dev->dev); @@ -843,7 +842,7 @@ static int s6e8ax0_suspend(struct mipi_dsim_lcd_device *dsim_dev) return 0; } -static int s6e8ax0_resume(struct mipi_dsim_lcd_device *dsim_dev) +static int __maybe_unused s6e8ax0_resume(struct mipi_dsim_lcd_device *dsim_dev) { struct s6e8ax0 *lcd = dev_get_drvdata(&dsim_dev->dev); @@ -855,10 +854,6 @@ static int s6e8ax0_resume(struct mipi_dsim_lcd_device *dsim_dev) return 0; } -#else -#define s6e8ax0_suspend NULL -#define s6e8ax0_resume NULL -#endif static struct mipi_dsim_lcd_driver s6e8ax0_dsim_ddi_driver = { .name = "s6e8ax0", @@ -867,8 +862,8 @@ static struct mipi_dsim_lcd_driver s6e8ax0_dsim_ddi_driver = { .power_on = s6e8ax0_power_on, .set_sequence = s6e8ax0_set_sequence, .probe = s6e8ax0_probe, - .suspend = s6e8ax0_suspend, - .resume = s6e8ax0_resume, + .suspend = IS_ENABLED(CONFIG_PM) ? s6e8ax0_suspend : NULL, + .resume = IS_ENABLED(CONFIG_PM) ? s6e8ax0_resume : NULL, }; static int s6e8ax0_init(void) diff --git a/drivers/video/fbdev/geode/display_gx1.c b/drivers/video/fbdev/geode/display_gx1.c index 926d53eeb..b383eb988 100644 --- a/drivers/video/fbdev/geode/display_gx1.c +++ b/drivers/video/fbdev/geode/display_gx1.c @@ -208,7 +208,7 @@ static void gx1_set_hw_palette_reg(struct fb_info *info, unsigned regno, writel(val, par->dc_regs + DC_PAL_DATA); } -struct geode_dc_ops gx1_dc_ops = { +const struct geode_dc_ops gx1_dc_ops = { .set_mode = gx1_set_mode, .set_palette_reg = gx1_set_hw_palette_reg, }; diff --git a/drivers/video/fbdev/geode/display_gx1.h b/drivers/video/fbdev/geode/display_gx1.h index 671c05558..e1cc41b34 100644 --- a/drivers/video/fbdev/geode/display_gx1.h +++ b/drivers/video/fbdev/geode/display_gx1.h @@ -18,7 +18,7 @@ unsigned gx1_gx_base(void); int gx1_frame_buffer_size(void); -extern struct geode_dc_ops gx1_dc_ops; +extern const struct geode_dc_ops gx1_dc_ops; /* GX1 configuration I/O registers */ diff --git a/drivers/video/fbdev/geode/geodefb.h b/drivers/video/fbdev/geode/geodefb.h index ae04820e0..e2e079348 100644 --- a/drivers/video/fbdev/geode/geodefb.h +++ b/drivers/video/fbdev/geode/geodefb.h @@ -31,8 +31,8 @@ struct geodefb_par { int panel_y; void __iomem *dc_regs; void __iomem *vid_regs; - struct geode_dc_ops *dc_ops; - struct geode_vid_ops *vid_ops; + const struct geode_dc_ops *dc_ops; + const struct geode_vid_ops *vid_ops; }; #endif /* !__GEODEFB_H__ */ diff --git a/drivers/video/fbdev/geode/video_cs5530.c b/drivers/video/fbdev/geode/video_cs5530.c index 649c3943d..880613200 100644 --- a/drivers/video/fbdev/geode/video_cs5530.c +++ b/drivers/video/fbdev/geode/video_cs5530.c @@ -186,7 +186,7 @@ static int cs5530_blank_display(struct fb_info *info, int blank_mode) return 0; } -struct geode_vid_ops cs5530_vid_ops = { +const struct geode_vid_ops cs5530_vid_ops = { .set_dclk = cs5530_set_dclk_frequency, .configure_display = cs5530_configure_display, .blank_display = cs5530_blank_display, diff --git a/drivers/video/fbdev/geode/video_cs5530.h b/drivers/video/fbdev/geode/video_cs5530.h index 56cecca7f..c843348bf 100644 --- a/drivers/video/fbdev/geode/video_cs5530.h +++ b/drivers/video/fbdev/geode/video_cs5530.h @@ -15,7 +15,7 @@ #ifndef __VIDEO_CS5530_H__ #define __VIDEO_CS5530_H__ -extern struct geode_vid_ops cs5530_vid_ops; +extern const struct geode_vid_ops cs5530_vid_ops; /* CS5530 Video device registers */ diff --git a/drivers/video/fbdev/i740fb.c b/drivers/video/fbdev/i740fb.c index 452e1163a..cf5ccd0f2 100644 --- a/drivers/video/fbdev/i740fb.c +++ b/drivers/video/fbdev/i740fb.c @@ -346,11 +346,10 @@ static void i740_calc_vclk(u32 freq, struct i740fb_par *par) const u32 err_target = freq / (1000 * I740_RFREQ / I740_FFIX); u32 err_best = 512 * I740_FFIX; u32 f_err, f_vco; - int m_best = 0, n_best = 0, p_best = 0, d_best = 0; + int m_best = 0, n_best = 0, p_best = 0; int m, n; p_best = min(15, ilog2(I740_MAX_VCO_FREQ / (freq / I740_RFREQ_FIX))); - d_best = 0; f_vco = (freq * (1 << p_best)) / I740_RFREQ_FIX; freq = freq / I740_RFREQ_FIX; @@ -363,7 +362,7 @@ static void i740_calc_vclk(u32 freq, struct i740fb_par *par) m = 3; { - u32 f_out = (((m * I740_REF_FREQ * (4 << 2 * d_best)) + u32 f_out = (((m * I740_REF_FREQ * 4) / n) + ((1 << p_best) / 2)) / (1 << p_best); f_err = (freq - f_out); @@ -386,8 +385,7 @@ static void i740_calc_vclk(u32 freq, struct i740fb_par *par) par->video_clk2_n = (n_best - 2) & 0xFF; par->video_clk2_mn_msbs = ((((n_best - 2) >> 4) & VCO_N_MSBS) | (((m_best - 2) >> 8) & VCO_M_MSBS)); - par->video_clk2_div_sel = - ((p_best << 4) | (d_best ? 4 : 0) | REF_DIV_1); + par->video_clk2_div_sel = ((p_best << 4) | REF_DIV_1); } static int i740fb_decode_var(const struct fb_var_screeninfo *var, diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index cee88603e..bb2f1e866 100644 --- a/drivers/video/fbdev/imxfb.c +++ b/drivers/video/fbdev/imxfb.c @@ -902,6 +902,21 @@ static int imxfb_probe(struct platform_device *pdev) goto failed_getclock; } + /* + * The LCDC controller does not have an enable bit. The + * controller starts directly when the clocks are enabled. + * If the clocks are enabled when the controller is not yet + * programmed with proper register values (enabled at the + * bootloader, for example) then it just goes into some undefined + * state. + * To avoid this issue, let's enable and disable LCDC IPG clock + * so that we force some kind of 'reset' to the LCDC block. + */ + ret = clk_prepare_enable(fbi->clk_ipg); + if (ret) + goto failed_getclock; + clk_disable_unprepare(fbi->clk_ipg); + fbi->clk_ahb = devm_clk_get(&pdev->dev, "ahb"); if (IS_ERR(fbi->clk_ahb)) { ret = PTR_ERR(fbi->clk_ahb); diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c index de54a4748..b6f83d5df 100644 --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c @@ -503,8 +503,7 @@ static int mmphw_probe(struct platform_device *pdev) ctrl->reg_base = devm_ioremap_nocache(ctrl->dev, res->start, resource_size(res)); if (ctrl->reg_base == NULL) { - dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__, - res->start, res->end); + dev_err(ctrl->dev, "%s: res %pR map failed\n", __func__, res); ret = -ENOMEM; goto failed; } diff --git a/drivers/video/fbdev/ocfb.c b/drivers/video/fbdev/ocfb.c index c9293aea8..a970edc2a 100644 --- a/drivers/video/fbdev/ocfb.c +++ b/drivers/video/fbdev/ocfb.c @@ -123,11 +123,11 @@ static int ocfb_setupfb(struct ocfb_dev *fbdev) /* Horizontal timings */ ocfb_writereg(fbdev, OCFB_HTIM, (var->hsync_len - 1) << 24 | - (var->right_margin - 1) << 16 | (var->xres - 1)); + (var->left_margin - 1) << 16 | (var->xres - 1)); /* Vertical timings */ ocfb_writereg(fbdev, OCFB_VTIM, (var->vsync_len - 1) << 24 | - (var->lower_margin - 1) << 16 | (var->yres - 1)); + (var->upper_margin - 1) << 16 | (var->yres - 1)); /* Total length of frame */ hlen = var->left_margin + var->right_margin + var->hsync_len + diff --git a/drivers/video/fbdev/omap2/Kconfig b/drivers/video/fbdev/omap2/Kconfig index c22955d2d..0921c4de8 100644 --- a/drivers/video/fbdev/omap2/Kconfig +++ b/drivers/video/fbdev/omap2/Kconfig @@ -1,10 +1,5 @@ -config OMAP2_VRFB - bool - if ARCH_OMAP2PLUS -source "drivers/video/fbdev/omap2/dss/Kconfig" source "drivers/video/fbdev/omap2/omapfb/Kconfig" -source "drivers/video/fbdev/omap2/displays-new/Kconfig" endif diff --git a/drivers/video/fbdev/omap2/Makefile b/drivers/video/fbdev/omap2/Makefile index f8745ec36..71ab5ac91 100644 --- a/drivers/video/fbdev/omap2/Makefile +++ b/drivers/video/fbdev/omap2/Makefile @@ -1,5 +1 @@ -obj-$(CONFIG_OMAP2_VRFB) += vrfb.o - -obj-y += dss/ -obj-y += displays-new/ -obj-$(CONFIG_FB_OMAP2) += omapfb/ +obj-y += omapfb/ diff --git a/drivers/video/fbdev/omap2/displays-new/Kconfig b/drivers/video/fbdev/omap2/displays-new/Kconfig deleted file mode 100644 index 574710141..000000000 --- a/drivers/video/fbdev/omap2/displays-new/Kconfig +++ /dev/null @@ -1,86 +0,0 @@ -menu "OMAP Display Device Drivers (new device model)" - depends on OMAP2_DSS - -config DISPLAY_ENCODER_OPA362 - tristate "OPA362 external analog amplifier" - help - Driver for OPA362 external analog TV amplifier controlled - through a GPIO. - -config DISPLAY_ENCODER_TFP410 - tristate "TFP410 DPI to DVI Encoder" - help - Driver for TFP410 DPI to DVI encoder. - -config DISPLAY_ENCODER_TPD12S015 - tristate "TPD12S015 HDMI ESD protection and level shifter" - help - Driver for TPD12S015, which offers HDMI ESD protection and level - shifting. - -config DISPLAY_CONNECTOR_DVI - tristate "DVI Connector" - depends on I2C - help - Driver for a generic DVI connector. - -config DISPLAY_CONNECTOR_HDMI - tristate "HDMI Connector" - help - Driver for a generic HDMI connector. - -config DISPLAY_CONNECTOR_ANALOG_TV - tristate "Analog TV Connector" - help - Driver for a generic analog TV connector. - -config DISPLAY_PANEL_DPI - tristate "Generic DPI panel" - help - Driver for generic DPI panels. - -config DISPLAY_PANEL_DSI_CM - tristate "Generic DSI Command Mode Panel" - depends on BACKLIGHT_CLASS_DEVICE - help - Driver for generic DSI command mode panels. - -config DISPLAY_PANEL_SONY_ACX565AKM - tristate "ACX565AKM Panel" - depends on SPI && BACKLIGHT_CLASS_DEVICE - help - This is the LCD panel used on Nokia N900 - -config DISPLAY_PANEL_LGPHILIPS_LB035Q02 - tristate "LG.Philips LB035Q02 LCD Panel" - depends on SPI - help - LCD Panel used on the Gumstix Overo Palo35 - -config DISPLAY_PANEL_SHARP_LS037V7DW01 - tristate "Sharp LS037V7DW01 LCD Panel" - depends on BACKLIGHT_CLASS_DEVICE - help - LCD Panel used in TI's SDP3430 and EVM boards - -config DISPLAY_PANEL_TPO_TD028TTEC1 - tristate "TPO TD028TTEC1 LCD Panel" - depends on SPI - help - LCD panel used in Openmoko. - -config DISPLAY_PANEL_TPO_TD043MTEA1 - tristate "TPO TD043MTEA1 LCD Panel" - depends on SPI - help - LCD Panel used in OMAP3 Pandora - -config DISPLAY_PANEL_NEC_NL8048HL11 - tristate "NEC NL8048HL11 Panel" - depends on SPI - depends on BACKLIGHT_CLASS_DEVICE - help - This NEC NL8048HL11 panel is TFT LCD used in the - Zoom2/3/3630 sdp boards. - -endmenu diff --git a/drivers/video/fbdev/omap2/displays-new/Makefile b/drivers/video/fbdev/omap2/displays-new/Makefile deleted file mode 100644 index 9aa176bfb..000000000 --- a/drivers/video/fbdev/omap2/displays-new/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -obj-$(CONFIG_DISPLAY_ENCODER_OPA362) += encoder-opa362.o -obj-$(CONFIG_DISPLAY_ENCODER_TFP410) += encoder-tfp410.o -obj-$(CONFIG_DISPLAY_ENCODER_TPD12S015) += encoder-tpd12s015.o -obj-$(CONFIG_DISPLAY_CONNECTOR_DVI) += connector-dvi.o -obj-$(CONFIG_DISPLAY_CONNECTOR_HDMI) += connector-hdmi.o -obj-$(CONFIG_DISPLAY_CONNECTOR_ANALOG_TV) += connector-analog-tv.o -obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o -obj-$(CONFIG_DISPLAY_PANEL_DSI_CM) += panel-dsi-cm.o -obj-$(CONFIG_DISPLAY_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o -obj-$(CONFIG_DISPLAY_PANEL_LGPHILIPS_LB035Q02) += panel-lgphilips-lb035q02.o -obj-$(CONFIG_DISPLAY_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o -obj-$(CONFIG_DISPLAY_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o -obj-$(CONFIG_DISPLAY_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o -obj-$(CONFIG_DISPLAY_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o diff --git a/drivers/video/fbdev/omap2/displays-new/connector-analog-tv.c b/drivers/video/fbdev/omap2/displays-new/connector-analog-tv.c deleted file mode 100644 index 8511c648a..000000000 --- a/drivers/video/fbdev/omap2/displays-new/connector-analog-tv.c +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Analog TV Connector driver - * - * Copyright (C) 2013 Texas Instruments - * Author: Tomi Valkeinen - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published by - * the Free Software Foundation. - */ - -#include -#include -#include -#include - -#include