Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0c3a8840
Commit
0c3a8840
authored
May 14, 2015
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: make dpcd parameters const
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
a10e04f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/atombios_dp.c
+4
-4
drivers/gpu/drm/radeon/radeon_mode.h
drivers/gpu/drm/radeon/radeon_mode.h
+1
-1
No files found.
drivers/gpu/drm/radeon/atombios_dp.c
View file @
0c3a8840
...
...
@@ -253,7 +253,7 @@ void radeon_dp_aux_init(struct radeon_connector *radeon_connector)
#define DP_VOLTAGE_MAX DP_TRAIN_VOLTAGE_SWING_LEVEL_3
#define DP_PRE_EMPHASIS_MAX DP_TRAIN_PRE_EMPH_LEVEL_3
static
void
dp_get_adjust_train
(
u8
link_status
[
DP_LINK_STATUS_SIZE
],
static
void
dp_get_adjust_train
(
const
u8
link_status
[
DP_LINK_STATUS_SIZE
],
int
lane_count
,
u8
train_set
[
4
])
{
...
...
@@ -311,7 +311,7 @@ static int dp_get_max_dp_pix_clock(int link_rate,
/***** radeon specific DP functions *****/
int
radeon_dp_get_max_link_rate
(
struct
drm_connector
*
connector
,
u8
dpcd
[
DP_DPCD_SIZE
])
const
u8
dpcd
[
DP_DPCD_SIZE
])
{
int
max_link_rate
;
...
...
@@ -328,7 +328,7 @@ int radeon_dp_get_max_link_rate(struct drm_connector *connector,
* if the max lane# < low rate lane# then use max lane# instead.
*/
static
int
radeon_dp_get_dp_lane_number
(
struct
drm_connector
*
connector
,
u8
dpcd
[
DP_DPCD_SIZE
],
const
u8
dpcd
[
DP_DPCD_SIZE
],
int
pix_clock
)
{
int
bpp
=
convert_bpc_to_bpp
(
radeon_get_monitor_bpc
(
connector
));
...
...
@@ -347,7 +347,7 @@ static int radeon_dp_get_dp_lane_number(struct drm_connector *connector,
}
static
int
radeon_dp_get_dp_link_clock
(
struct
drm_connector
*
connector
,
u8
dpcd
[
DP_DPCD_SIZE
],
const
u8
dpcd
[
DP_DPCD_SIZE
],
int
pix_clock
)
{
int
bpp
=
convert_bpc_to_bpp
(
radeon_get_monitor_bpc
(
connector
));
...
...
drivers/gpu/drm/radeon/radeon_mode.h
View file @
0c3a8840
...
...
@@ -754,7 +754,7 @@ extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector);
extern
int
radeon_dp_get_panel_mode
(
struct
drm_encoder
*
encoder
,
struct
drm_connector
*
connector
);
int
radeon_dp_get_max_link_rate
(
struct
drm_connector
*
connector
,
u8
*
dpcd
);
const
u8
*
dpcd
);
extern
void
radeon_dp_set_rx_power_state
(
struct
drm_connector
*
connector
,
u8
power_state
);
extern
void
radeon_dp_aux_init
(
struct
radeon_connector
*
radeon_connector
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment