Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/arm/hdlcd: Use drm_gem_cma_print_info()

There is a new core debugfs file that prints fb/gem info:
<debugfs>/dri/<n>/framebuffer

Use drm_gem_cma_print_info() to provide info to that output instead
of using drm_fb_cma_debugfs_show().

Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107191348.17555-10-noralf@tronnes.org

+1 -1
+1 -1
drivers/gpu/drm/arm/hdlcd_drv.c
··· 230 230 static struct drm_info_list hdlcd_debugfs_list[] = { 231 231 { "interrupt_count", hdlcd_show_underrun_count, 0 }, 232 232 { "clocks", hdlcd_show_pxlclock, 0 }, 233 - { "fb", drm_fb_cma_debugfs_show, 0 }, 234 233 }; 235 234 236 235 static int hdlcd_debugfs_init(struct drm_minor *minor) ··· 251 252 .irq_postinstall = hdlcd_irq_postinstall, 252 253 .irq_uninstall = hdlcd_irq_uninstall, 253 254 .gem_free_object_unlocked = drm_gem_cma_free_object, 255 + .gem_print_info = drm_gem_cma_print_info, 254 256 .gem_vm_ops = &drm_gem_cma_vm_ops, 255 257 .dumb_create = drm_gem_cma_dumb_create, 256 258 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,