summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorWenjing Liu <wenjing.liu@amd.com>2025-11-06 08:49:18 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-11-12 05:53:26 +0300
commit815e260a18a3af4dab59025ee99a7156c0e8b5e0 (patch)
tree55dc050afd9271d74e44cfb0b197110af06929a6 /scripts/patch-kernel
parentc154a96b550b66bdf032216cab613269cb91e79e (diff)
downloadlinux-815e260a18a3af4dab59025ee99a7156c0e8b5e0.tar.xz
drm/amd/display: add macros to simplify code
[Why & How] Adding macros to simplify the process of adding new error codes. Currently, to add an error code, the developer needs to add both the enum and the string translation. This is error prone and can lead to inconsistencies. The refactor adds a macro to automatically add the string translation based on the enum. Reviewed-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions