diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-03-11 05:51:04 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-04-07 12:11:24 -0400 |
commit | d58ded7625a6811593616420cf1bcea902ce2c76 (patch) | |
tree | e081727782e39a1d8bb15217536f4e83ae396891 /drivers/gpu/drm/nouveau/dispnv04/crtc.c | |
parent | 319d1e14109047b4f002394a80fe89a96ced64ed (diff) |
drm/nouveau: 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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv04/crtc.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c index 542bb266a0ab..3d96b49fe662 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/crtc.c +++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c | |||
@@ -703,7 +703,7 @@ static void nv_crtc_prepare(struct drm_crtc *crtc) | |||
703 | struct drm_device *dev = crtc->dev; | 703 | struct drm_device *dev = crtc->dev; |
704 | struct nouveau_drm *drm = nouveau_drm(dev); | 704 | struct nouveau_drm *drm = nouveau_drm(dev); |
705 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); | 705 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); |
706 | struct drm_crtc_helper_funcs *funcs = crtc->helper_private; | 706 | const struct drm_crtc_helper_funcs *funcs = crtc->helper_private; |
707 | 707 | ||
708 | if (nv_two_heads(dev)) | 708 | if (nv_two_heads(dev)) |
709 | NVSetOwner(dev, nv_crtc->index); | 709 | NVSetOwner(dev, nv_crtc->index); |
@@ -724,7 +724,7 @@ static void nv_crtc_prepare(struct drm_crtc *crtc) | |||
724 | static void nv_crtc_commit(struct drm_crtc *crtc) | 724 | static void nv_crtc_commit(struct drm_crtc *crtc) |
725 | { | 725 | { |
726 | struct drm_device *dev = crtc->dev; | 726 | struct drm_device *dev = crtc->dev; |
727 | struct drm_crtc_helper_funcs *funcs = crtc->helper_private; | 727 | const struct drm_crtc_helper_funcs *funcs = crtc->helper_private; |
728 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); | 728 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); |
729 | 729 | ||
730 | nouveau_hw_load_state(dev, nv_crtc->index, &nv04_display(dev)->mode_reg); | 730 | nouveau_hw_load_state(dev, nv_crtc->index, &nv04_display(dev)->mode_reg); |