compositor-drm: Property accessor can be const
Since it doesn't write to the parameter, we can make it const. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
@@ -591,7 +591,7 @@ to_drm_mode(struct weston_mode *base)
|
||||
*/
|
||||
static uint64_t
|
||||
drm_property_get_value(struct drm_property_info *info,
|
||||
drmModeObjectPropertiesPtr props,
|
||||
const drmModeObjectProperties *props,
|
||||
uint64_t def)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
Reference in New Issue
Block a user