Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cff91b62 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Dave Airlie
Browse files

drm: Constify params to format_check() and framebuffer_checks()

parent 1f73cca7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2116,7 +2116,7 @@ out:
	return ret;
	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;
	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;
	int ret, hsub, vsub, num_planes, i;