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>
dev
Daniel Stone 6 years ago
parent a21c393108
commit 85eebdf456
  1. 2
      libweston/compositor-drm.c

@ -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;

Loading…
Cancel
Save