drm: Constify params to format_check() and framebuffer_checks()
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
1f73cca799
commit
cff91b625f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue