Commit 6ff1086e authored by Noralf Trønnes's avatar Noralf Trønnes

drm/framebuffer: drm_framebuffer_read_refcount() constify argument

Constify argument so functions calling into this take a const argument.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107191348.17555-3-noralf@tronnes.org
parent bf38b055
...@@ -263,7 +263,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb) ...@@ -263,7 +263,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
* *
* This functions returns the framebuffer's reference count. * This functions returns the framebuffer's reference count.
*/ */
static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb) static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb)
{ {
return kref_read(&fb->base.refcount); return kref_read(&fb->base.refcount);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment