aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/drm/drm_atomic_state_helper.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-11-17 10:28:57 +0100
committerMaxime Ripard <maxime@cerno.tech>2022-11-24 12:42:40 +0100
commit5a28cefda3a94afc7761abbf4cb6270deeef8105 (patch)
treeb5922dbb825515dd54abf0b1a54bfd04fd6d83a9 /include/drm/drm_atomic_state_helper.h
parentdrm/atomic-helper: Add a TV properties reset helper (diff)
downloadwireguard-linux-5a28cefda3a94afc7761abbf4cb6270deeef8105.tar.xz
wireguard-linux-5a28cefda3a94afc7761abbf4cb6270deeef8105.zip
drm/atomic-helper: Add an analog TV atomic_check implementation
The analog TV connector drivers share some atomic_check logic, and the new TV standard property have created some boilerplate that can be shared across drivers too. Let's create an atomic_check helper for those use cases. Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com> Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-14-256dad125326@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'include/drm/drm_atomic_state_helper.h')
-rw-r--r--include/drm/drm_atomic_state_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_atomic_state_helper.h b/include/drm/drm_atomic_state_helper.h
index c8fbce795ee7..b9740edb2658 100644
--- a/include/drm/drm_atomic_state_helper.h
+++ b/include/drm/drm_atomic_state_helper.h
@@ -26,6 +26,7 @@
#include <linux/types.h>
+struct drm_atomic_state;
struct drm_bridge;
struct drm_bridge_state;
struct drm_crtc;
@@ -71,6 +72,8 @@ 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);
+int drm_atomic_helper_connector_tv_check(struct drm_connector *connector,
+ struct drm_atomic_state *state);
void drm_atomic_helper_connector_tv_margins_reset(struct drm_connector *connector);
void
__drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,