amdgpu: securedisplay: simplify i2c hexdump output
authorArnd Bergmann <arnd@arndb.de>
Wed, 24 Mar 2021 13:36:52 +0000 (14:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:44:08 +0000 (16:44 -0400)
commit9e76e7b2066657e0e04906b6941ee0d364d8e3b8
tree7b01ac48253a4b033d5c51e3069ad8e5219c2038
parentf4a9be998c8ee39a30a68cb775c91928fe10a384
amdgpu: securedisplay: simplify i2c hexdump output

A previous fix I did left a rather complicated loop in
amdgpu_securedisplay_debugfs_write() for what could be expressed in a
simple sprintf, as Rasmus pointed out.

This drops the leading 0x for each byte, but is otherwise
much nicer.

Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c