|
@@ -244,7 +244,7 @@ static void nv04_dfp_prepare_sel_clk(struct drm_device *dev,
|
|
static void nv04_dfp_prepare(struct drm_encoder *encoder)
|
|
static void nv04_dfp_prepare(struct drm_encoder *encoder)
|
|
{
|
|
{
|
|
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
|
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
|
- struct drm_encoder_helper_funcs *helper = encoder->helper_private;
|
|
|
|
|
|
+ const struct drm_encoder_helper_funcs *helper = encoder->helper_private;
|
|
struct drm_device *dev = encoder->dev;
|
|
struct drm_device *dev = encoder->dev;
|
|
int head = nouveau_crtc(encoder->crtc)->index;
|
|
int head = nouveau_crtc(encoder->crtc)->index;
|
|
struct nv04_crtc_reg *crtcstate = nv04_display(dev)->mode_reg.crtc_reg;
|
|
struct nv04_crtc_reg *crtcstate = nv04_display(dev)->mode_reg.crtc_reg;
|
|
@@ -445,7 +445,7 @@ static void nv04_dfp_commit(struct drm_encoder *encoder)
|
|
{
|
|
{
|
|
struct drm_device *dev = encoder->dev;
|
|
struct drm_device *dev = encoder->dev;
|
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
|
- struct drm_encoder_helper_funcs *helper = encoder->helper_private;
|
|
|
|
|
|
+ const struct drm_encoder_helper_funcs *helper = encoder->helper_private;
|
|
struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc);
|
|
struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc);
|
|
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
|
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
|
struct dcb_output *dcbe = nv_encoder->dcb;
|
|
struct dcb_output *dcbe = nv_encoder->dcb;
|