diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-12-15 06:21:00 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-15 07:42:27 -0500 |
commit | e9becd46d65b9a0b71adb8032fad2383c93d81f3 (patch) | |
tree | 87e0b43eb861cfe3bf5b782f4e12a9fd1b5654b9 /drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | |
parent | a02fb90a30f82ca116829e137b8e60fa8bce3da0 (diff) |
drm/atmel-hlcdc: Constify function pointer structs
Moves a bunch of junk to .rodata from .data.
drivers/gpu/drm/atmel-hlcdc/atmel-hlcdc-dc.ko:
-.text 12488
+.text 12480
-.rodata 1696
+.rodata 1760
-.data 776
+.data 712
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450178476-26284-13-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c')
-rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c index d1129000c5cf..0f7ec016e7a9 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | |||
@@ -146,7 +146,7 @@ atmel_hlcdc_rgb_encoder_mode_set(struct drm_encoder *encoder, | |||
146 | cfg); | 146 | cfg); |
147 | } | 147 | } |
148 | 148 | ||
149 | static struct drm_encoder_helper_funcs atmel_hlcdc_panel_encoder_helper_funcs = { | 149 | static const struct drm_encoder_helper_funcs atmel_hlcdc_panel_encoder_helper_funcs = { |
150 | .mode_fixup = atmel_hlcdc_panel_encoder_mode_fixup, | 150 | .mode_fixup = atmel_hlcdc_panel_encoder_mode_fixup, |
151 | .mode_set = atmel_hlcdc_rgb_encoder_mode_set, | 151 | .mode_set = atmel_hlcdc_rgb_encoder_mode_set, |
152 | .disable = atmel_hlcdc_panel_encoder_disable, | 152 | .disable = atmel_hlcdc_panel_encoder_disable, |
@@ -192,7 +192,7 @@ atmel_hlcdc_rgb_best_encoder(struct drm_connector *connector) | |||
192 | return &rgb->encoder; | 192 | return &rgb->encoder; |
193 | } | 193 | } |
194 | 194 | ||
195 | static struct drm_connector_helper_funcs atmel_hlcdc_panel_connector_helper_funcs = { | 195 | static const struct drm_connector_helper_funcs atmel_hlcdc_panel_connector_helper_funcs = { |
196 | .get_modes = atmel_hlcdc_panel_get_modes, | 196 | .get_modes = atmel_hlcdc_panel_get_modes, |
197 | .mode_valid = atmel_hlcdc_rgb_mode_valid, | 197 | .mode_valid = atmel_hlcdc_rgb_mode_valid, |
198 | .best_encoder = atmel_hlcdc_rgb_best_encoder, | 198 | .best_encoder = atmel_hlcdc_rgb_best_encoder, |