]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/sun4i: hdmi_enc: implement clear_infoframe stub
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 7 Jan 2026 18:15:00 +0000 (20:15 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Mon, 19 Jan 2026 11:10:35 +0000 (13:10 +0200)
In preparation to making clear_infoframes callbacks required, add a stub
to the sun4i driver.

Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260107-limit-infoframes-2-v4-3-213d0d3bd490@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

index ab0938ba61f7d75dd0bec473807a04a20e1cffbd..6263ee15880af6c536cf900b550fee3219ec6019 100644 (file)
 #define drm_connector_to_sun4i_hdmi(c)         \
        container_of_const(c, struct sun4i_hdmi, connector)
 
+static int sun4i_hdmi_clear_infoframe(struct drm_connector *connector,
+                                     enum hdmi_infoframe_type type)
+{
+       drm_warn_once(connector->dev, "clearing of AVI infoframe is not implemented\n");
+
+       return 0;
+}
+
 static int sun4i_hdmi_write_infoframe(struct drm_connector *connector,
                                      enum hdmi_infoframe_type type,
                                      const u8 *buffer, size_t len)
@@ -236,6 +244,7 @@ static struct i2c_adapter *sun4i_hdmi_get_ddc(struct device *dev)
 
 static const struct drm_connector_hdmi_funcs sun4i_hdmi_hdmi_connector_funcs = {
        .tmds_char_rate_valid   = sun4i_hdmi_connector_clock_valid,
+       .clear_infoframe        = sun4i_hdmi_clear_infoframe,
        .write_infoframe        = sun4i_hdmi_write_infoframe,
 };