diff options
| author | Bernard Zhao <[email protected]> | 2020-05-07 09:13:05 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-05-07 20:25:03 +0000 |
| commit | ecc8c2e193088ca66c71c192b94e655c08e10e84 (patch) | |
| tree | 64d0ae342666d702db25f9a242ac7c8477daeb03 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | drm/amd/display: add basic atomic check for cursor plane (diff) | |
| download | kernel-ecc8c2e193088ca66c71c192b94e655c08e10e84.tar.gz kernel-ecc8c2e193088ca66c71c192b94e655c08e10e84.zip | |
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
