drm/mode: introduce wrapper to read framebuffer refcount.
Avoids drivers knowing where the kref is stored. [airlied: add kerneldoc] Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -878,7 +878,7 @@ static int tegra_debugfs_framebuffers(struct seq_file *s, void *data)
|
||||
seq_printf(s, "%3d: user size: %d x %d, depth %d, %d bpp, refcount %d\n",
|
||||
fb->base.id, fb->width, fb->height, fb->depth,
|
||||
fb->bits_per_pixel,
|
||||
atomic_read(&fb->refcount.refcount));
|
||||
drm_framebuffer_read_refcount(fb));
|
||||
}
|
||||
|
||||
mutex_unlock(&drm->mode_config.fb_lock);
|
||||
|
Reference in New Issue
Block a user