projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf38b05
)
drm/framebuffer: drm_framebuffer_read_refcount() constify argument
author
Noralf Trønnes
<noralf@tronnes.org>
Tue, 7 Nov 2017 19:13:38 +0000
(20:13 +0100)
committer
Noralf 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
patch
|
blob
|
history
diff --git
a/include/drm/drm_framebuffer.h
b/include/drm/drm_framebuffer.h
index
b6996dd
..
6cce22e
100644
(file)
--- 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);
}