summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_framebuffer.h
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-11-07 20:13:38 +0100
committerNoralf Trønnes <noralf@tronnes.org>2017-11-11 11:19:57 +0100
commit6ff1086e21e5b1d6239e2c47267d21dc19b6e801 (patch)
tree9794b46df19bf3bdae3f923c87ce8cd93ae27aac /include/drm/drm_framebuffer.h
parentbf38b0550359ee7a78244d17ed49d3c557cceb01 (diff)
downloadtalos-op-linux-6ff1086e21e5b1d6239e2c47267d21dc19b6e801.tar.gz
talos-op-linux-6ff1086e21e5b1d6239e2c47267d21dc19b6e801.zip
drm/framebuffer: drm_framebuffer_read_refcount() constify argument
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
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 b6996ddb19d6..6cce22e1a0f2 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -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);
}
OpenPOWER on IntegriCloud