aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_framebuffer.h')
-rw-r--r--include/drm/drm_framebuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
index 4c5ee4ae54df..dccb897951ba 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -264,7 +264,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
264 * 264 *
265 * This functions returns the framebuffer's reference count. 265 * This functions returns the framebuffer's reference count.
266 */ 266 */
267static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb) 267static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb)
268{ 268{
269 return kref_read(&fb->base.refcount); 269 return kref_read(&fb->base.refcount);
270} 270}