]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm: Add a helper function for printing a debugfs_regset32.
authorEric Anholt <eric@anholt.net>
Wed, 20 Feb 2019 21:03:37 +0000 (13:03 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2019 17:44:34 +0000 (10:44 -0700)
commit5f513cc89edfbb395b71ebf09d971666e23758db
tree7f786d84328ac4bd1dd11c30462d813c6c3a0661
parent3f0b646e1a54248bcd5304f1de71091dad4e7b1e
drm: Add a helper function for printing a debugfs_regset32.

The debugfs_regset32 is nice to use for reducing boilerplate in
dumping a bunch of regs in debugfs, but we also want to be able to
print to dmesg them at runtime for driver debugging.  drm_printer lets
us format debugfs and the printk the same way.

v2: Add some kerneldoc for the function (requested by danvet)

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190220210343.28157-1-eric@anholt.net
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> (v1)
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_print.c
include/drm/drm_print.h