ath79: add support for COMFAST CF-E130N v2
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-4.19 / 950-0621-drm-connector-Clarify-the-unit-of-TV-margins.patch
1 From 4589a8a086094061e7476d41578e31349accc190 Mon Sep 17 00:00:00 2001
2 From: Boris Brezillon <boris.brezillon@bootlin.com>
3 Date: Thu, 6 Dec 2018 15:24:36 +0100
4 Subject: [PATCH] drm/connector: Clarify the unit of TV margins
5
6 Commit 56406e15b5e83256151ef74eb1a219cbf13d91c8 upstream.
7
8 All margins are expressed in pixels. Clarify that in the doc.
9
10 Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
11 Reviewed-by: Eric Anholt <eric@anholt.net>
12 Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 Link: https://patchwork.freedesktop.org/patch/msgid/20181206142439.10441-3-boris.brezillon@bootlin.com
14 ---
15 include/drm/drm_connector.h | 2 +-
16 include/drm/drm_mode_config.h | 8 ++++----
17 2 files changed, 5 insertions(+), 5 deletions(-)
18
19 --- a/include/drm/drm_connector.h
20 +++ b/include/drm/drm_connector.h
21 @@ -346,7 +346,7 @@ int drm_display_info_set_bus_formats(str
22 /**
23 * struct drm_tv_connector_state - TV connector related states
24 * @subconnector: selected subconnector
25 - * @margins: margins
26 + * @margins: margins (all margins are expressed in pixels)
27 * @margins.left: left margin
28 * @margins.right: right margin
29 * @margins.top: top margin
30 --- a/include/drm/drm_mode_config.h
31 +++ b/include/drm/drm_mode_config.h
32 @@ -668,22 +668,22 @@ struct drm_mode_config {
33 struct drm_property *tv_mode_property;
34 /**
35 * @tv_left_margin_property: Optional TV property to set the left
36 - * margin.
37 + * margin (expressed in pixels).
38 */
39 struct drm_property *tv_left_margin_property;
40 /**
41 * @tv_right_margin_property: Optional TV property to set the right
42 - * margin.
43 + * margin (expressed in pixels).
44 */
45 struct drm_property *tv_right_margin_property;
46 /**
47 * @tv_top_margin_property: Optional TV property to set the right
48 - * margin.
49 + * margin (expressed in pixels).
50 */
51 struct drm_property *tv_top_margin_property;
52 /**
53 * @tv_bottom_margin_property: Optional TV property to set the right
54 - * margin.
55 + * margin (expressed in pixels).
56 */
57 struct drm_property *tv_bottom_margin_property;
58 /**