From 6e4928702428649a54b78071c1d123da39b7f7ee Mon Sep 17 00:00:00 2001 From: Sandy Huang Date: Tue, 8 Aug 2017 20:34:32 +0800 Subject: [PATCH] drm/rockchip: lvds: set funcs structures to const Change-Id: Ie118a1184a315c8cb7808a14a87f23c8c9a47757 Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/rockchip_lvds.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c index 7a0a27c97f88..db95aeb5b20d 100644 --- a/drivers/gpu/drm/rockchip/rockchip_lvds.c +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c @@ -384,7 +384,7 @@ static void rockchip_lvds_connector_destroy(struct drm_connector *connector) drm_connector_cleanup(connector); } -static struct drm_connector_funcs rockchip_lvds_connector_funcs = { +static const struct drm_connector_funcs rockchip_lvds_connector_funcs = { .dpms = drm_atomic_helper_connector_dpms, .detect = rockchip_lvds_connector_detect, .fill_modes = drm_helper_probe_single_connector_modes, @@ -429,7 +429,7 @@ int rockchip_lvds_connector_loader_protect(struct drm_connector *connector, return 0; } -static +static const struct drm_connector_helper_funcs rockchip_lvds_connector_helper_funcs = { .get_modes = rockchip_lvds_connector_get_modes, .mode_valid = rockchip_lvds_connector_mode_valid, @@ -651,7 +651,8 @@ static int rockchip_lvds_encoder_loader_protect(struct drm_encoder *encoder, return 0; } -static struct drm_encoder_helper_funcs rockchip_lvds_encoder_helper_funcs = { +static const +struct drm_encoder_helper_funcs rockchip_lvds_encoder_helper_funcs = { .mode_fixup = rockchip_lvds_encoder_mode_fixup, .mode_set = rockchip_lvds_encoder_mode_set, .enable = rockchip_lvds_encoder_enable, @@ -665,7 +666,7 @@ static void rockchip_lvds_encoder_destroy(struct drm_encoder *encoder) drm_encoder_cleanup(encoder); } -static struct drm_encoder_funcs rockchip_lvds_encoder_funcs = { +static const struct drm_encoder_funcs rockchip_lvds_encoder_funcs = { .destroy = rockchip_lvds_encoder_destroy, }; -- 2.34.1