Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3aaf762 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Inki Dae
Browse files

drm/exynos: Constify exynos_drm_crtc_ops



The Exynos DRM code does not modify the ops provided by CRTC driver in
exynos_drm_crtc_create() call.

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 48107d7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ static void decon_dpms(struct exynos_drm_crtc *crtc, int mode)
	}
}

static struct exynos_drm_crtc_ops decon_crtc_ops = {
static const struct exynos_drm_crtc_ops decon_crtc_ops = {
	.dpms = decon_dpms,
	.mode_fixup = decon_mode_fixup,
	.commit = decon_commit,
+5 −5
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
					struct drm_plane *plane,
					int pipe,
					enum exynos_drm_output_type type,
					       struct exynos_drm_crtc_ops *ops,
					const struct exynos_drm_crtc_ops *ops,
					void *ctx)
{
	struct exynos_drm_crtc *exynos_crtc;
+5 −5
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
					struct drm_plane *plane,
					int pipe,
					enum exynos_drm_output_type type,
					       struct exynos_drm_crtc_ops *ops,
					const struct exynos_drm_crtc_ops *ops,
					void *context);
int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
+1 −1
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@ struct exynos_drm_crtc {
	unsigned int			dpms;
	wait_queue_head_t		pending_flip_queue;
	struct drm_pending_vblank_event	*event;
	struct exynos_drm_crtc_ops	*ops;
	const struct exynos_drm_crtc_ops	*ops;
	void				*ctx;
};

+1 −1
Original line number Diff line number Diff line
@@ -962,7 +962,7 @@ static void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable)
	writel(DP_MIE_CLK_DP_ENABLE, ctx->regs + DP_MIE_CLKCON);
}

static struct exynos_drm_crtc_ops fimd_crtc_ops = {
static const struct exynos_drm_crtc_ops fimd_crtc_ops = {
	.dpms = fimd_dpms,
	.mode_fixup = fimd_mode_fixup,
	.commit = fimd_commit,
Loading