]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: cleanup get_mfd_cell_dev()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Feb 2016 07:47:10 +0000 (10:47 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2016 17:43:47 +0000 (12:43 -0500)
commit318c33f58a343395a45e33f73a74e99f3dc71280
tree7e983deb716ca4f6c77165e129fbea52ee5e73f6
parent7bc70d2da50c27cdc576d0b3ab53710e7943eb43
drm/amd: cleanup get_mfd_cell_dev()

It's simpler to just use snprintf() to print this to one buffer instead
of using strcpy() and strcat().  Also using snprintf() is slightly safer
than using sprintf().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c