5c0ab9768b3cb029f3d73705b6ba59d75a97e1db
[openwrt/openwrt.git] /
1 From dfc6e670144207251dc0902d1756bc89ef6cd1dc Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Thu, 13 Feb 2020 12:31:09 +0100
4 Subject: [PATCH] drm/vc4: hdmi: Rename drm_encoder pointer in
5 mode_valid
6
7 The mode_valid hook on the encoder uses a pointer to a drm_encoder called
8 crtc, which is pretty confusing. Let's rename it to encoder to make it
9 clear what it is.
10
11 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
12 ---
13 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
17 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
18 @@ -559,7 +559,7 @@ static void vc4_hdmi_encoder_enable(stru
19 }
20
21 static enum drm_mode_status
22 -vc4_hdmi_encoder_mode_valid(struct drm_encoder *crtc,
23 +vc4_hdmi_encoder_mode_valid(struct drm_encoder *encoder,
24 const struct drm_display_mode *mode)
25 {
26 /*