Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Add definition for number of backlight data points

[Why]
A hardcoded number is used today

[How]
Add definition for number of BL data points

Signed-off-by: Camille Cho <Camille.Cho@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Camille Cho and committed by
Alex Deucher
a9ec3fe4 6026be69

+2 -1
+2 -1
drivers/gpu/drm/amd/display/dc/dm_services_types.h
··· 220 220 }; 221 221 222 222 /* Total size of the structure should not exceed 256 bytes */ 223 + #define BL_DATA_POINTS 99 223 224 struct dm_acpi_atif_backlight_caps { 224 225 uint16_t size; /* Bytes 0-1 (2 bytes) */ 225 226 uint16_t flags; /* Byted 2-3 (2 bytes) */ ··· 230 229 uint8_t min_input_signal; /* Byte 7 */ 231 230 uint8_t max_input_signal; /* Byte 8 */ 232 231 uint8_t num_data_points; /* Byte 9 */ 233 - struct dm_bl_data_point data_points[99]; /* Bytes 10-207 (198 bytes)*/ 232 + struct dm_bl_data_point data_points[BL_DATA_POINTS]; /* Bytes 10-207 (198 bytes)*/ 234 233 }; 235 234 236 235 enum dm_acpi_display_type {