mirror of
https://github.com/torvalds/linux.git
synced 2026-10-26 20:46:02 +01:00
drm/display: hdmi: Rename drmm_connector_hdmi_init() to *_ini2()
In preparation for changing the signature of drmm_connector_hdmi_init(),
i.e. dropping the vendor, product, supported_formats and max_bpc
arguments, which are being moved into struct drm_connector_hdmi_funcs,
temporarily rename the helper to drmm_connector_hdmi_ini2().
This lets the new signature be introduced under the original name while
callers are converted incrementally. The final patch removes *_ini2()
once no callers remain.
This is a mechanical, same-length rename performed with sed:
$ git grep -l 'drmm_connector_hdmi_init' -- '*.[ch]' \
| xargs sed -i 's/drmm_connector_hdmi_init/drmm_connector_hdmi_ini2/g'
The transitional name matches the original's length so continuation-line
arguments stay aligned to the opening parenthesis, keeping the diff to
the identifier itself and avoiding re-alignment churn here and in the
later conversions.
No functional change intended.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Diederik de Haas <diederik@cknow-tech.com> # NanoPC-T6 LTS, Rock 5B
Tested-by: Igor Paunovic <royalnet026@gmail.com> # RK3588 Orange Pi 5 Plus, dual HDMI
Tested-by: Robin Räber <robin.raebi@gmail.com>
Link: https://patch.msgid.link/20260901-dw-hdmi-qp-scramb-v11-3-bc12954a0688@collabora.com
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
This commit is contained in:
parent
54acd0c74e
commit
245e321b61
|
|
@ -1013,7 +1013,7 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
|
|||
bridge_connector->hdmi_funcs.spd =
|
||||
drm_bridge_connector_hdmi_spd_infoframe;
|
||||
|
||||
ret = drmm_connector_hdmi_init(drm, connector,
|
||||
ret = drmm_connector_hdmi_ini2(drm, connector,
|
||||
bridge_connector->bridge_hdmi->vendor,
|
||||
bridge_connector->bridge_hdmi->product,
|
||||
&drm_bridge_connector_funcs,
|
||||
|
|
|
|||
|
|
@ -543,7 +543,7 @@ int drmm_connector_init(struct drm_device *dev,
|
|||
EXPORT_SYMBOL(drmm_connector_init);
|
||||
|
||||
/**
|
||||
* drmm_connector_hdmi_init - Init a preallocated HDMI connector
|
||||
* drmm_connector_hdmi_ini2 - Init a preallocated HDMI connector
|
||||
* @dev: DRM device
|
||||
* @connector: A pointer to the HDMI connector to init
|
||||
* @vendor: HDMI Controller Vendor name
|
||||
|
|
@ -568,7 +568,7 @@ EXPORT_SYMBOL(drmm_connector_init);
|
|||
* Returns:
|
||||
* Zero on success, error code on failure.
|
||||
*/
|
||||
int drmm_connector_hdmi_init(struct drm_device *dev,
|
||||
int drmm_connector_hdmi_ini2(struct drm_device *dev,
|
||||
struct drm_connector *connector,
|
||||
const char *vendor, const char *product,
|
||||
const struct drm_connector_funcs *funcs,
|
||||
|
|
@ -646,7 +646,7 @@ int drmm_connector_hdmi_init(struct drm_device *dev,
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(drmm_connector_hdmi_init);
|
||||
EXPORT_SYMBOL(drmm_connector_hdmi_ini2);
|
||||
|
||||
/**
|
||||
* drm_connector_attach_edid_property - attach edid property.
|
||||
|
|
|
|||
|
|
@ -654,7 +654,7 @@ static int sun4i_hdmi_bind(struct device *dev, struct device *master,
|
|||
|
||||
drm_connector_helper_add(&hdmi->connector,
|
||||
&sun4i_hdmi_connector_helper_funcs);
|
||||
ret = drmm_connector_hdmi_init(drm, &hdmi->connector,
|
||||
ret = drmm_connector_hdmi_ini2(drm, &hdmi->connector,
|
||||
/*
|
||||
* NOTE: Those are likely to be
|
||||
* wrong, but I couldn't find the
|
||||
|
|
|
|||
|
|
@ -669,7 +669,7 @@ static void drm_test_connector_hdmi_init_valid(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -689,7 +689,7 @@ static void drm_test_connector_hdmi_init_null_ddc(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -709,7 +709,7 @@ static void drm_test_connector_hdmi_init_null_vendor(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
NULL, "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -729,7 +729,7 @@ static void drm_test_connector_hdmi_init_null_product(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", NULL,
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -755,7 +755,7 @@ static void drm_test_connector_hdmi_init_product_valid(struct kunit *test)
|
|||
|
||||
KUNIT_ASSERT_LT(test, strlen(product_name), DRM_CONNECTOR_HDMI_PRODUCT_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", product_name,
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -788,7 +788,7 @@ static void drm_test_connector_hdmi_init_product_length_exact(struct kunit *test
|
|||
|
||||
KUNIT_ASSERT_EQ(test, strlen(product_name), DRM_CONNECTOR_HDMI_PRODUCT_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", product_name,
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -815,7 +815,7 @@ static void drm_test_connector_hdmi_init_product_length_too_long(struct kunit *t
|
|||
|
||||
KUNIT_ASSERT_GT(test, strlen(product_name), DRM_CONNECTOR_HDMI_PRODUCT_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", product_name,
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -841,7 +841,7 @@ static void drm_test_connector_hdmi_init_vendor_valid(struct kunit *test)
|
|||
|
||||
KUNIT_ASSERT_LT(test, strlen(vendor_name), DRM_CONNECTOR_HDMI_VENDOR_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
vendor_name, "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -873,7 +873,7 @@ static void drm_test_connector_hdmi_init_vendor_length_exact(struct kunit *test)
|
|||
|
||||
KUNIT_ASSERT_EQ(test, strlen(vendor_name), DRM_CONNECTOR_HDMI_VENDOR_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
vendor_name, "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -900,7 +900,7 @@ static void drm_test_connector_hdmi_init_vendor_length_too_long(struct kunit *te
|
|||
|
||||
KUNIT_ASSERT_GT(test, strlen(vendor_name), DRM_CONNECTOR_HDMI_VENDOR_LEN);
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
vendor_name, "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -920,7 +920,7 @@ static void drm_test_connector_hdmi_init_bpc_invalid(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -940,7 +940,7 @@ static void drm_test_connector_hdmi_init_bpc_null(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -965,7 +965,7 @@ static void drm_test_connector_hdmi_init_bpc_8(struct kunit *test)
|
|||
uint64_t val;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1006,7 +1006,7 @@ static void drm_test_connector_hdmi_init_bpc_10(struct kunit *test)
|
|||
uint64_t val;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1047,7 +1047,7 @@ static void drm_test_connector_hdmi_init_bpc_12(struct kunit *test)
|
|||
uint64_t val;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1083,7 +1083,7 @@ static void drm_test_connector_hdmi_init_formats_empty(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1103,7 +1103,7 @@ static void drm_test_connector_hdmi_init_formats_no_rgb(struct kunit *test)
|
|||
struct drm_connector_init_priv *priv = test->priv;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1161,7 +1161,7 @@ static void drm_test_connector_hdmi_init_formats_yuv420_allowed(struct kunit *te
|
|||
params = test->param_value;
|
||||
priv->connector.ycbcr_420_allowed = params->yuv420_allowed;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1182,7 +1182,7 @@ static void drm_test_connector_hdmi_init_type_valid(struct kunit *test)
|
|||
unsigned int connector_type = *(unsigned int *)test->param_value;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1217,7 +1217,7 @@ static void drm_test_connector_hdmi_init_type_invalid(struct kunit *test)
|
|||
unsigned int connector_type = *(unsigned int *)test->param_value;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, &priv->connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, &priv->connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
@ -1494,7 +1494,7 @@ static void drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector(
|
|||
struct drm_property *prop;
|
||||
int ret;
|
||||
|
||||
ret = drmm_connector_hdmi_init(&priv->drm, connector,
|
||||
ret = drmm_connector_hdmi_ini2(&priv->drm, connector,
|
||||
"Vendor", "Product",
|
||||
&dummy_funcs,
|
||||
&dummy_hdmi_funcs,
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ __connector_hdmi_init(struct kunit *test,
|
|||
conn = &priv->connector;
|
||||
conn->ycbcr_420_allowed = !!(formats & BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR420));
|
||||
|
||||
ret = drmm_connector_hdmi_init(drm, conn,
|
||||
ret = drmm_connector_hdmi_ini2(drm, conn,
|
||||
"Vendor", "Product",
|
||||
&dummy_connector_funcs,
|
||||
hdmi_funcs,
|
||||
|
|
|
|||
|
|
@ -542,7 +542,7 @@ static int vc4_hdmi_connector_init(struct drm_device *dev,
|
|||
if (vc4_hdmi->variant->supports_hdr)
|
||||
max_bpc = 12;
|
||||
|
||||
ret = drmm_connector_hdmi_init(dev, connector,
|
||||
ret = drmm_connector_hdmi_ini2(dev, connector,
|
||||
"Broadcom", "Videocore",
|
||||
&vc4_hdmi_connector_funcs,
|
||||
&vc4_hdmi_hdmi_connector_funcs,
|
||||
|
|
|
|||
|
|
@ -2616,7 +2616,7 @@ int drmm_connector_init(struct drm_device *dev,
|
|||
const struct drm_connector_funcs *funcs,
|
||||
int connector_type,
|
||||
struct i2c_adapter *ddc);
|
||||
int drmm_connector_hdmi_init(struct drm_device *dev,
|
||||
int drmm_connector_hdmi_ini2(struct drm_device *dev,
|
||||
struct drm_connector *connector,
|
||||
const char *vendor, const char *product,
|
||||
const struct drm_connector_funcs *funcs,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user