Bernard Zhao ecc8c2e193 drm/amd/amdgpu: cleanup coding style a bit
There is DEVICE_ATTR mechanism in separate attribute define.
So this change is to use attr array, also use
sysfs_create_files in init function & sysfs_remove_files in
fini function.
This maybe make the code a bit readable.

Signed-off-by: Bernard Zhao <bernard@vivo.com>

Changes since V1:
*Use DEVICE_ATTR mechanism

Link for V1:
*https://lore.kernel.org/patchwork/patch/1228076/

V2: make array const to fix build errors

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-07 16:25:03 -04:00
..
2020-02-17 10:34:34 +01:00
2020-05-06 16:51:25 -04:00
2019-09-16 09:59:21 -05:00
2019-06-20 11:36:22 -05:00
2020-05-07 16:24:16 -04:00
2020-04-24 11:42:11 -04:00
2020-04-09 10:43:33 -04:00
2019-06-10 23:00:01 +02:00
2020-04-24 11:42:11 -04:00
2020-03-16 16:17:55 -04:00