mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/bridge: analogix_dp: Remove unused struct drm_connector* for &analogix_dp_plat_data.attach()
For both Rockchip and Exynos sides, the struct drm_connector* is never used in callback &analogix_dp_plat_data.attach(). After applying drm_bridge_connector helper, this parameter will no longer be used at all. Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Link: https://patch.msgid.link/20260409065301.446670-10-damon.ding@rock-chips.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
4226b19edf
commit
b943aefce6
|
|
@ -991,7 +991,7 @@ static int analogix_dp_bridge_attach(struct drm_bridge *bridge,
|
|||
* point after plat attached.
|
||||
*/
|
||||
if (dp->plat_data->attach) {
|
||||
ret = dp->plat_data->attach(dp->plat_data, bridge, connector);
|
||||
ret = dp->plat_data->attach(dp->plat_data, bridge);
|
||||
if (ret) {
|
||||
DRM_ERROR("Failed at platform attach func\n");
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -70,8 +70,7 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data)
|
|||
}
|
||||
|
||||
static int exynos_dp_bridge_attach(struct analogix_dp_plat_data *plat_data,
|
||||
struct drm_bridge *bridge,
|
||||
struct drm_connector *connector)
|
||||
struct drm_bridge *bridge)
|
||||
{
|
||||
struct exynos_dp_device *dp = to_dp(plat_data);
|
||||
enum drm_bridge_attach_flags flags = 0;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,7 @@ struct analogix_dp_plat_data {
|
|||
|
||||
int (*power_on)(struct analogix_dp_plat_data *);
|
||||
int (*power_off)(struct analogix_dp_plat_data *);
|
||||
int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
|
||||
struct drm_connector *);
|
||||
int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *);
|
||||
};
|
||||
|
||||
int analogix_dp_resume(struct analogix_dp_device *dp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user