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

drm/radeon: make dpcd parameters const

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+5 -5
+4 -4
drivers/gpu/drm/radeon/atombios_dp.c
··· 253 253 #define DP_VOLTAGE_MAX DP_TRAIN_VOLTAGE_SWING_LEVEL_3 254 254 #define DP_PRE_EMPHASIS_MAX DP_TRAIN_PRE_EMPH_LEVEL_3 255 255 256 - static void dp_get_adjust_train(u8 link_status[DP_LINK_STATUS_SIZE], 256 + static void dp_get_adjust_train(const u8 link_status[DP_LINK_STATUS_SIZE], 257 257 int lane_count, 258 258 u8 train_set[4]) 259 259 { ··· 311 311 /***** radeon specific DP functions *****/ 312 312 313 313 int radeon_dp_get_max_link_rate(struct drm_connector *connector, 314 - u8 dpcd[DP_DPCD_SIZE]) 314 + const u8 dpcd[DP_DPCD_SIZE]) 315 315 { 316 316 int max_link_rate; 317 317 ··· 328 328 * if the max lane# < low rate lane# then use max lane# instead. 329 329 */ 330 330 static int radeon_dp_get_dp_lane_number(struct drm_connector *connector, 331 - u8 dpcd[DP_DPCD_SIZE], 331 + const u8 dpcd[DP_DPCD_SIZE], 332 332 int pix_clock) 333 333 { 334 334 int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector)); ··· 347 347 } 348 348 349 349 static int radeon_dp_get_dp_link_clock(struct drm_connector *connector, 350 - u8 dpcd[DP_DPCD_SIZE], 350 + const u8 dpcd[DP_DPCD_SIZE], 351 351 int pix_clock) 352 352 { 353 353 int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector));
+1 -1
drivers/gpu/drm/radeon/radeon_mode.h
··· 754 754 extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, 755 755 struct drm_connector *connector); 756 756 int radeon_dp_get_max_link_rate(struct drm_connector *connector, 757 - u8 *dpcd); 757 + const u8 *dpcd); 758 758 extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, 759 759 u8 power_state); 760 760 extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector);