drm/imx: Remove imx_drm_crtc_vblank_get/_put()
Subsystems (3)
PATCH 1/2 drm/imx: Remove imx_drm_crtc_vblank_get/_put()
There is no one calling imx_drm_crtc_vblank_get/_put() and they are just two simple wrappers of drm_crtc_vblank_get/_put() without doing any thing fancy - the drivers may call drm_crtc_vblank_get/_put() directly. So, let's remove the two wrappers.
--- drivers/gpu/drm/imx/imx-drm-core.c | 12 ------------ drivers/gpu/drm/imx/imx-drm.h | 2 -- 2 files changed, 14 deletions(-)
drivers/gpu/drm/imx/imx-drm-core.c +0 -12
@@ -90,18 +90,6 @@ static int imx_drm_driver_unload(struct drm_device *drm)return 0 ; } -int imx_drm_crtc_vblank_get (struct imx_drm_crtc *imx_drm_crtc) -{ -return drm_crtc_vblank_get (imx_drm_crtc->crtc); -} -EXPORT_SYMBOL_GPL (imx_drm_crtc_vblank_get); - -void imx_drm_crtc_vblank_put (struct imx_drm_crtc *imx_drm_crtc) -{ -drm_crtc_vblank_put (imx_drm_crtc->crtc); -} -EXPORT_SYMBOL_GPL (imx_drm_crtc_vblank_put); -void imx_drm_handle_vblank (struct imx_drm_crtc *imx_drm_crtc) {drm_crtc_handle_vblank (imx_drm_crtc->crtc);
drivers/gpu/drm/imx/imx-drm.h +0 -2
@@ -44,8 +44,6 @@ int imx_drm_init_drm(struct platform_device *pdev, int preferred_bpp);int imx_drm_exit_drm (void ); -int imx_drm_crtc_vblank_get (struct imx_drm_crtc *imx_drm_crtc); -void imx_drm_crtc_vblank_put (struct imx_drm_crtc *imx_drm_crtc);void imx_drm_handle_vblank (struct imx_drm_crtc *imx_drm_crtc);void imx_drm_mode_config_init (struct drm_device *drm);
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/imx: Remove imx_drm_crtc_id()
There is no one calling imx_drm_crtc_id() and it is just a simple wrapper of drm_crtc_index() without doing any thing fancy - the drivers may call drm_crtc_index() directly. So, let's remove the wrapper.
--- drivers/gpu/drm/imx/imx-drm-core.c | 6 ------ drivers/gpu/drm/imx/imx-drm.h | 2 -- 2 files changed, 8 deletions(-)
drivers/gpu/drm/imx/imx-drm-core.c +0 -6
@@ -58,12 +58,6 @@ static int legacyfb_depth = 16;module_param (legacyfb_depth, int,0444 );#endif -unsigned int imx_drm_crtc_id (struct imx_drm_crtc *crtc) -{ -return drm_crtc_index (crtc->crtc); -} -EXPORT_SYMBOL_GPL (imx_drm_crtc_id); -static void imx_drm_driver_lastclose (struct drm_device *drm) {struct imx_drm_device *imxdrm = drm->dev_private;
drivers/gpu/drm/imx/imx-drm.h +0 -2
@@ -13,8 +13,6 @@ struct drm_plane;struct imx_drm_crtc ;struct platform_device ; -unsigned int imx_drm_crtc_id (struct imx_drm_crtc *crtc); -struct imx_crtc_state {struct drm_crtc_state base;u32 bus_format;
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Philipp Zabel
AppliedHi Liu,
Am Montag, den 18.07.2016, 15:44 +0800 schrieb Liu Ying:
Quoted 7 lines
There is no one calling imx_drm_crtc_vblank_get/_put() and they are just two simple wrappers of drm_crtc_vblank_get/_put() without doing any thing fancy - the drivers may call drm_crtc_vblank_get/_put() directly. So, let's remove the two wrappers.
Signed-off-by Liu Ying <[email protected]>
Applied both, thank you.
regards
Philipp
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel