]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/framebuffer: drm_framebuffer_read_refcount() constify argument
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 7 Nov 2017 19:13:38 +0000 (20:13 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Sat, 11 Nov 2017 10:19:57 +0000 (11:19 +0100)
Constify argument so functions calling into this take a const argument.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107191348.17555-3-noralf@tronnes.org
include/drm/drm_framebuffer.h

index b6996ddb19d6e8831d74aac16d6be98d6c72bdff..6cce22e1a0f2718eb822fb114f6bcb9b74111a18 100644 (file)
@@ -263,7 +263,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
  *
  * 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);
 }