.disable_vblank = ade_crtc_disable_vblank,
};
-static int ade_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
- struct drm_plane *plane)
+static int kirin_drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
+ struct drm_plane *plane)
{
struct device_node *port;
int ret;
.atomic_destroy_state = drm_atomic_helper_plane_destroy_state,
};
-static int ade_plane_init(struct drm_device *dev, struct kirin_plane *kplane,
- enum drm_plane_type type)
+static int kirin_drm_plane_init(struct drm_device *dev,
+ struct kirin_plane *kplane,
+ enum drm_plane_type type)
{
int ret = 0;
struct kirin_crtc *kcrtc;
struct kirin_plane *kplane;
enum drm_plane_type type;
+ int prim_plane;
int ret;
u32 ch;
else
type = DRM_PLANE_TYPE_OVERLAY;
- ret = ade_plane_init(dev, kplane, type);
+ ret = kirin_drm_plane_init(dev, kplane, type);
if (ret)
return ret;
}
/* crtc init */
- ret = ade_crtc_init(dev, &kcrtc->base,
- &ade->planes[ade_driver_data.prim_plane].base);
+ prim_plane = ade_driver_data.prim_plane;
+ ret = kirin_drm_crtc_init(dev, &kcrtc->base,
+ &ade->planes[prim_plane].base);
if (ret)
return ret;