drm/bridge: Call drm_connector_cleanup directly
Subsystems (3)
PATCH 1/1 drm/bridge: Call drm_connector_cleanup directly
Remove the unnecessary wrapper functions around drm_connector_cleanup().
--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)
drivers/gpu/drm/bridge/analogix-anx78xx.c +1 -6
@@ -1001,16 +1001,11 @@ static enum drm_connector_status anx78xx_detect(struct drm_connector *connector,return connector_status_connected; } -static void anx78xx_connector_destroy (struct drm_connector *connector) -{ -drm_connector_cleanup (connector); -} -static const struct drm_connector_funcs anx78xx_connector_funcs = { .dpms = drm_atomic_helper_connector_dpms, .fill_modes = drm_helper_probe_single_connector_modes, .detect = anx78xx_detect, - .destroy = anx78xx_connector_destroy, + .destroy = drm_connector_cleanup, .reset = drm_atomic_helper_connector_reset, .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
drivers/gpu/drm/bridge/nxp-ptn3460.c +1 -6
@@ -245,16 +245,11 @@ static enum drm_connector_status ptn3460_detect(struct drm_connector *connector,return connector_status_connected; } -static void ptn3460_connector_destroy (struct drm_connector *connector) -{ -drm_connector_cleanup (connector); -} -static const struct drm_connector_funcs ptn3460_connector_funcs = { .dpms = drm_atomic_helper_connector_dpms, .fill_modes = drm_helper_probe_single_connector_modes, .detect = ptn3460_detect, - .destroy = ptn3460_connector_destroy, + .destroy = drm_connector_cleanup, .reset = drm_atomic_helper_connector_reset, .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
drivers/gpu/drm/bridge/parade-ps8622.c +1 -6
@@ -483,16 +483,11 @@ static enum drm_connector_status ps8622_detect(struct drm_connector *connector,return connector_status_connected; } -static void ps8622_connector_destroy (struct drm_connector *connector) -{ -drm_connector_cleanup (connector); -} -static const struct drm_connector_funcs ps8622_connector_funcs = { .dpms = drm_atomic_helper_connector_dpms, .fill_modes = drm_helper_probe_single_connector_modes, .detect = ps8622_detect, - .destroy = ps8622_connector_destroy, + .destroy = drm_connector_cleanup, .reset = drm_atomic_helper_connector_reset, .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 9 lines
Remove the unnecessary wrapper functions around
drm_connector_cleanup().Signed-off-by Marek Vasut <[email protected]>Cc Daniel Vetter <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)
Gustavo
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 14 lines · Gustavo Padovan
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 9 lines
Remove the unnecessary wrapper functions around
drm_connector_cleanup().Signed-off-by Marek Vasut <[email protected]>Cc Daniel Vetter <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)
Quoted 1 line
Reviewed-by Gustavo Padovan <[email protected]>
Yeah, nice little cleanup. Applied to drm-misc.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Gustavo Padovan
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 9 lines
Remove the unnecessary wrapper functions around
drm_connector_cleanup().Signed-off-by Marek Vasut <[email protected]>Cc Daniel Vetter <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)
Quoted 3 lines
Quoted 1 line
Reviewed-by Gustavo Padovan <[email protected]>Yeah, nice little cleanup. Applied to drm-misc.
So while we're at it, I also found drivers with code like [1]. Is calling the drm_connector_unregister() necessary in there at all ? Or shall we convert it the same way as the three drivers above ?
Quoted 2 lines
-Daniel
Signature · 6 lines
Best regards, Marek Vasut _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 16 lines · Daniel Vetter
Quoted 15 lines · Gustavo Padovan
Quoted 14 lines
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 9 lines
Remove the unnecessary wrapper functions around
drm_connector_cleanup().Signed-off-by Marek Vasut <[email protected]>Cc Daniel Vetter <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Reviewed-by Gustavo Padovan <[email protected]>Yeah, nice little cleanup. Applied to drm-misc.
So while we're at it, I also found drivers with code like [1]. Is calling the
drm_connector_unregister()necessary in there at all ? Or shall we convert it the same way as the three drivers above ?
drm_connector_register/unregister() are not necessary anymore as this is handled by drm_dev_register() now. So these drivers can be clean up as well.
Gustavo
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 24 lines · Gustavo Padovan
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 20 lines · Daniel Vetter
Quoted 18 lines · Gustavo Padovan
Quoted 14 lines
Hi Marek,
2016-10-05 Marek Vasut <[email protected]>:
Quoted 9 lines
Remove the unnecessary wrapper functions around
drm_connector_cleanup().Signed-off-by Marek Vasut <[email protected]>Cc Daniel Vetter <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 +------ drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ drivers/gpu/drm/bridge/parade-ps8622.c | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-)Quoted 1 line
Reviewed-by Gustavo Padovan <[email protected]>Yeah, nice little cleanup. Applied to drm-misc.
Quoted 7 lines
Quoted 3 lines
So while we're at it, I also found drivers with code like [1]. Is calling the
drm_connector_unregister()necessary in there at all ? Or shall we convert it the same way as the three drivers above ?drm_connector_register/unregister() are not necessary anymore as this is handled by
drm_dev_register()now. So these drivers can be clean up as well.
OK, got it. Patch is out.
Signature · 6 lines
Best regards, Marek Vasut _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel