diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-12-23 13:42:55 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-12-24 18:49:44 +0100 |
commit | 67dcc43f3a22dc3a7ac07a7065971b426feeb043 (patch) | |
tree | 0b647356dce45d2c79fd46cf201daa5089cc0934 /target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch | |
parent | 47a93a810f78adce5a130d287f82b28e9b54313c (diff) | |
download | upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.tar.gz upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.tar.bz2 upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.zip |
brcm2708: organize kernel patches
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch b/target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch deleted file mode 100644 index cc02184516..0000000000 --- a/target/linux/brcm2708/patches-4.19/950-0738-drm-atomic-Add-a-function-to-reset-connector-TV-prop.patch +++ /dev/null @@ -1,63 +0,0 @@ -From 8dd1e4d73fdbc4a533a58c2c74a72877257c558c Mon Sep 17 00:00:00 2001 -From: Maxime Ripard <maxime.ripard@bootlin.com> -Date: Wed, 19 Jun 2019 12:17:52 +0200 -Subject: [PATCH 738/806] drm/atomic: Add a function to reset connector TV - properties -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Commit 731514b446fe6748d5a55a3dff202efb45c7d8df upstream. -Reworked as functions have been moved from drm_atomic_helper.[c|h] -to drm_atomic_state_helper.[c|h]. - -During the connector reset, if that connector has a TV property, it needs -to be reset to the value provided on the command line. - -Provide a helper to do that. - -Reviewed-by: Noralf Trønnes <noralf@tronnes.org> -Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> -Link: https://patchwork.freedesktop.org/patch/msgid/84a7b657f09303a2850e1cc79e68f623547f3fdd.1560783090.git-series.maxime.ripard@bootlin.com ---- - drivers/gpu/drm/drm_atomic_helper.c | 18 ++++++++++++++++++ - include/drm/drm_atomic_helper.h | 1 + - 2 files changed, 19 insertions(+) - ---- a/drivers/gpu/drm/drm_atomic_helper.c -+++ b/drivers/gpu/drm/drm_atomic_helper.c -@@ -3737,6 +3737,24 @@ void drm_atomic_helper_connector_reset(s - EXPORT_SYMBOL(drm_atomic_helper_connector_reset); - - /** -+ * drm_atomic_helper_connector_tv_reset - Resets TV connector properties -+ * @connector: DRM connector -+ * -+ * Resets the TV-related properties attached to a connector. -+ */ -+void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector) -+{ -+ struct drm_cmdline_mode *cmdline = &connector->cmdline_mode; -+ struct drm_connector_state *state = connector->state; -+ -+ state->tv.margins.left = cmdline->tv_margins.left; -+ state->tv.margins.right = cmdline->tv_margins.right; -+ state->tv.margins.top = cmdline->tv_margins.top; -+ state->tv.margins.bottom = cmdline->tv_margins.bottom; -+} -+EXPORT_SYMBOL(drm_atomic_helper_connector_tv_reset); -+ -+/** - * __drm_atomic_helper_connector_duplicate_state - copy atomic connector state - * @connector: connector object - * @state: atomic connector state ---- a/include/drm/drm_atomic_helper.h -+++ b/include/drm/drm_atomic_helper.h -@@ -168,6 +168,7 @@ void drm_atomic_helper_plane_destroy_sta - void __drm_atomic_helper_connector_reset(struct drm_connector *connector, - struct drm_connector_state *conn_state); - void drm_atomic_helper_connector_reset(struct drm_connector *connector); -+void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector); - void - __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector, - struct drm_connector_state *state); |