Skip to content

Commit

Permalink
drm: Constify params to format_check() and framebuffer_checks()
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
vsyrjala authored and airlied committed May 29, 2012
1 parent 1f73cca commit cff91b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ int drm_mode_addfb(struct drm_device *dev,
return ret;
}

static int format_check(struct drm_mode_fb_cmd2 *r)
static int format_check(const struct drm_mode_fb_cmd2 *r)
{
uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN;

Expand Down Expand Up @@ -2185,7 +2185,7 @@ static int format_check(struct drm_mode_fb_cmd2 *r)
}
}

static int framebuffer_check(struct drm_mode_fb_cmd2 *r)
static int framebuffer_check(const struct drm_mode_fb_cmd2 *r)
{
int ret, hsub, vsub, num_planes, i;

Expand Down

0 comments on commit cff91b6

Please sign in to comment.