1 From 6261047a83258900e57a0a699ec7954360c6e7f3 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@bootlin.com>
3 Date: Wed, 19 Jun 2019 12:17:51 +0200
4 Subject: [PATCH] drm/connector: Introduce a TV margins structure
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Commit 22045e8e52bd802f743f0471242782fc3b479707 upstream.
11 The TV margins has been defined as a structure inside the
12 drm_connector_state structure so far. However, we will need it in other
13 structures as well, so let's move that structure definition so that it can
16 Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
17 Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
18 Link: https://patchwork.freedesktop.org/patch/msgid/38b773b03f15ec7a135cdf8f7db669e5ada20cf2.1560783090.git-series.maxime.ripard@bootlin.com
20 include/drm/drm_connector.h | 41 +++++++++++++++++++++++++++----------
21 1 file changed, 30 insertions(+), 11 deletions(-)
23 --- a/include/drm/drm_connector.h
24 +++ b/include/drm/drm_connector.h
25 @@ -344,13 +344,37 @@ int drm_display_info_set_bus_formats(str
26 unsigned int num_formats);
29 + * struct drm_connector_tv_margins - TV connector related margins
31 + * Describes the margins in pixels to put around the image on TV
32 + * connectors to deal with overscan.
34 +struct drm_connector_tv_margins {
36 + * @bottom: Bottom margin in pixels.
38 + unsigned int bottom;
41 + * @left: Left margin in pixels.
46 + * @right: Right margin in pixels.
51 + * @top: Top margin in pixels.
57 * struct drm_tv_connector_state - TV connector related states
58 * @subconnector: selected subconnector
59 - * @margins: margins (all margins are expressed in pixels)
60 - * @margins.left: left margin
61 - * @margins.right: right margin
62 - * @margins.top: top margin
63 - * @margins.bottom: bottom margin
64 + * @margins: TV margins
66 * @brightness: brightness in percent
67 * @contrast: contrast in percent
68 @@ -361,12 +385,7 @@ int drm_display_info_set_bus_formats(str
70 struct drm_tv_connector_state {
71 enum drm_mode_subconnector subconnector;
76 - unsigned int bottom;
78 + struct drm_connector_tv_margins margins;
80 unsigned int brightness;
81 unsigned int contrast;