]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/sti/sti_hdmi: Move 'colorspace_mode_names' array to where its used
authorLee Jones <lee.jones@linaro.org>
Thu, 12 Nov 2020 19:00:36 +0000 (19:00 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 12 Nov 2020 19:32:53 +0000 (20:32 +0100)
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/sti/sti_hdmi.h:36:40: warning: ‘colorspace_mode_names’ defined but not used [-Wunused-const-variable=]
 36 | static const struct drm_prop_enum_list colorspace_mode_names[] = {
 | ^~~~~~~~~~~~~~~~~~~~~

Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201112190039.2785914-28-lee.jones@linaro.org
drivers/gpu/drm/sti/sti_hdmi.c
drivers/gpu/drm/sti/sti_hdmi.h

index 38a558768e5311318be452425b6bbadfb023e44c..f3ace11209dd72f7569243818cd0537266927292 100644 (file)
@@ -167,6 +167,12 @@ struct sti_hdmi_connector {
 #define to_sti_hdmi_connector(x) \
        container_of(x, struct sti_hdmi_connector, drm_connector)
 
+static const struct drm_prop_enum_list colorspace_mode_names[] = {
+       { HDMI_COLORSPACE_RGB, "rgb" },
+       { HDMI_COLORSPACE_YUV422, "yuv422" },
+       { HDMI_COLORSPACE_YUV444, "yuv444" },
+};
+
 u32 hdmi_read(struct sti_hdmi *hdmi, int offset)
 {
        return readl(hdmi->regs + offset);
index 1f6dc90b5d83af7d4e6c74ae1166713592f74738..05b2f3d0d48d3a208499d8421f8e5b6ec103a93c 100644 (file)
@@ -33,12 +33,6 @@ struct hdmi_audio_params {
        struct hdmi_audio_infoframe cea;
 };
 
-static const struct drm_prop_enum_list colorspace_mode_names[] = {
-       { HDMI_COLORSPACE_RGB, "rgb" },
-       { HDMI_COLORSPACE_YUV422, "yuv422" },
-       { HDMI_COLORSPACE_YUV444, "yuv444" },
-};
-
 #define DEFAULT_COLORSPACE_MODE HDMI_COLORSPACE_RGB
 
 /**