]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Rename backlight_properties to pwr_backlight_properties
authorRay Wu <ray.wu@amd.com>
Mon, 20 Apr 2026 07:16:12 +0000 (15:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2026 13:56:52 +0000 (09:56 -0400)
commit35a8ecb704938596fd655c25dca4234ee5cc031f
tree64067e05dff715c704e15b72f912ab71d9c3be1f
parenta62e6f515e00ef3ef33c57d06fbf803dbe4c3f08
drm/amd/display: Rename backlight_properties to pwr_backlight_properties

[Why]
'struct backlight_properties' in power.c has the same name as the kernel's
struct defined in <linux/backlight.h>. In out-of-tree backport build
environments, the header is forcefully injected via command-line includes,
causing a redefinition error.

[How]
Rename the file-local 'struct backlight_properties' to
'pwr_backlight_properties' to avoid the name collision. No functional
change.

Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power.c