diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-03-11 05:51:00 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-04-07 11:06:41 -0400 |
commit | d584ff822b19ac788dcda7d764b567001178cfe5 (patch) | |
tree | 4ef0c746e6716ad2b912e94e66b92c81c9ceb62b | |
parent | b0f8778a34186455f3661308676f068f43fc9335 (diff) |
drm/mgag200: constify all struct drm_*_helper funcs pointers
They are not to be modified.
Generated using the semantic patch:
@@
@@
(
const struct drm_crtc_helper_funcs *
|
- struct drm_crtc_helper_funcs *
+ const struct drm_crtc_helper_funcs *
)
@@
@@
(
const struct drm_encoder_helper_funcs *
|
- struct drm_encoder_helper_funcs *
+ const struct drm_encoder_helper_funcs *
)
@@
@@
(
const struct drm_connector_helper_funcs *
|
- struct drm_connector_helper_funcs *
+ const struct drm_connector_helper_funcs *
)
@@
@@
(
const struct drm_plane_helper_funcs *
|
- struct drm_plane_helper_funcs *
+ const struct drm_plane_helper_funcs *
)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 9872ba9abf1a..6e84df9369a6 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c | |||
@@ -1222,7 +1222,7 @@ static void mga_crtc_commit(struct drm_crtc *crtc) | |||
1222 | { | 1222 | { |
1223 | struct drm_device *dev = crtc->dev; | 1223 | struct drm_device *dev = crtc->dev; |
1224 | struct mga_device *mdev = dev->dev_private; | 1224 | struct mga_device *mdev = dev->dev_private; |
1225 | struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; | 1225 | const struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; |
1226 | u8 tmp; | 1226 | u8 tmp; |
1227 | 1227 | ||
1228 | if (mdev->type == G200_WB) | 1228 | if (mdev->type == G200_WB) |