diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0731-drm-amd-display-Fix-some-backlight-variable-styling.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0731-drm-amd-display-Fix-some-backlight-variable-styling.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0731-drm-amd-display-Fix-some-backlight-variable-styling.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0731-drm-amd-display-Fix-some-backlight-variable-styling.patch new file mode 100644 index 00000000..06d309db --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0731-drm-amd-display-Fix-some-backlight-variable-styling.patch @@ -0,0 +1,54 @@ +From 72120e2f02f14db291ea00d323e7c5ff8e2f401d Mon Sep 17 00:00:00 2001 +From: Anthony Koo <Anthony.Koo@amd.com> +Date: Sat, 13 Oct 2018 23:31:51 -0400 +Subject: [PATCH 0731/2940] drm/amd/display: Fix some backlight variable + styling + +variableNamingsLikeSo aren't to convention. use_this_instead. + +Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> +Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + .../gpu/drm/amd/display/dc/dm_services_types.h | 18 ++++++++---------- + 1 file changed, 8 insertions(+), 10 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dm_services_types.h b/drivers/gpu/drm/amd/display/dc/dm_services_types.h +index 2b83f922ac02..1af8c777b3ac 100644 +--- a/drivers/gpu/drm/amd/display/dc/dm_services_types.h ++++ b/drivers/gpu/drm/amd/display/dc/dm_services_types.h +@@ -208,22 +208,20 @@ struct dm_bl_data_point { + /* Brightness level as effective value in range 0-255, + * corresponding to above percentage + */ +- uint8_t signalLevel; ++ uint8_t signal_level; + }; + + /* Total size of the structure should not exceed 256 bytes */ + struct dm_acpi_atif_backlight_caps { +- +- + uint16_t size; /* Bytes 0-1 (2 bytes) */ + uint16_t flags; /* Byted 2-3 (2 bytes) */ +- uint8_t errorCode; /* Byte 4 */ +- uint8_t acLevelPercentage; /* Byte 5 */ +- uint8_t dcLevelPercentage; /* Byte 6 */ +- uint8_t minInputSignal; /* Byte 7 */ +- uint8_t maxInputSignal; /* Byte 8 */ +- uint8_t numOfDataPoints; /* Byte 9 */ +- struct dm_bl_data_point dataPoints[99]; /* Bytes 10-207 (198 bytes)*/ ++ uint8_t error_code; /* Byte 4 */ ++ uint8_t ac_level_percentage; /* Byte 5 */ ++ uint8_t dc_level_percentage; /* Byte 6 */ ++ uint8_t min_input_signal; /* Byte 7 */ ++ uint8_t max_input_signal; /* Byte 8 */ ++ uint8_t num_data_points; /* Byte 9 */ ++ struct dm_bl_data_point data_points[99]; /* Bytes 10-207 (198 bytes)*/ + }; + + enum dm_acpi_display_type { +-- +2.17.1 + |