diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2016-09-25 16:34:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-27 13:00:52 -0400 |
commit | 44f9d7b3f1096ec5c90b2396f600f385f4bf4a00 (patch) | |
tree | 5b9809aab9bc7120ed7e26211f23847d8032ca07 /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
parent | 54ddf3a6af537cbfe038f9a2754f26de80c5818b (diff) |
drm/amdgpu/i2c: add const where appropriate
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c index c93a92a840ea..34bab616588c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |||
@@ -158,8 +158,8 @@ static const struct i2c_algorithm amdgpu_atombios_i2c_algo = { | |||
158 | }; | 158 | }; |
159 | 159 | ||
160 | struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, | 160 | struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, |
161 | struct amdgpu_i2c_bus_rec *rec, | 161 | const struct amdgpu_i2c_bus_rec *rec, |
162 | const char *name) | 162 | const char *name) |
163 | { | 163 | { |
164 | struct amdgpu_i2c_chan *i2c; | 164 | struct amdgpu_i2c_chan *i2c; |
165 | int ret; | 165 | int ret; |
@@ -249,8 +249,8 @@ void amdgpu_i2c_fini(struct amdgpu_device *adev) | |||
249 | 249 | ||
250 | /* Add additional buses */ | 250 | /* Add additional buses */ |
251 | void amdgpu_i2c_add(struct amdgpu_device *adev, | 251 | void amdgpu_i2c_add(struct amdgpu_device *adev, |
252 | struct amdgpu_i2c_bus_rec *rec, | 252 | const struct amdgpu_i2c_bus_rec *rec, |
253 | const char *name) | 253 | const char *name) |
254 | { | 254 | { |
255 | struct drm_device *dev = adev->ddev; | 255 | struct drm_device *dev = adev->ddev; |
256 | int i; | 256 | int i; |
@@ -266,7 +266,7 @@ void amdgpu_i2c_add(struct amdgpu_device *adev, | |||
266 | /* looks up bus based on id */ | 266 | /* looks up bus based on id */ |
267 | struct amdgpu_i2c_chan * | 267 | struct amdgpu_i2c_chan * |
268 | amdgpu_i2c_lookup(struct amdgpu_device *adev, | 268 | amdgpu_i2c_lookup(struct amdgpu_device *adev, |
269 | struct amdgpu_i2c_bus_rec *i2c_bus) | 269 | const struct amdgpu_i2c_bus_rec *i2c_bus) |
270 | { | 270 | { |
271 | int i; | 271 | int i; |
272 | 272 | ||
@@ -336,7 +336,7 @@ static void amdgpu_i2c_put_byte(struct amdgpu_i2c_chan *i2c_bus, | |||
336 | 336 | ||
337 | /* ddc router switching */ | 337 | /* ddc router switching */ |
338 | void | 338 | void |
339 | amdgpu_i2c_router_select_ddc_port(struct amdgpu_connector *amdgpu_connector) | 339 | amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *amdgpu_connector) |
340 | { | 340 | { |
341 | u8 val; | 341 | u8 val; |
342 | 342 | ||
@@ -365,7 +365,7 @@ amdgpu_i2c_router_select_ddc_port(struct amdgpu_connector *amdgpu_connector) | |||
365 | 365 | ||
366 | /* clock/data router switching */ | 366 | /* clock/data router switching */ |
367 | void | 367 | void |
368 | amdgpu_i2c_router_select_cd_port(struct amdgpu_connector *amdgpu_connector) | 368 | amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *amdgpu_connector) |
369 | { | 369 | { |
370 | u8 val; | 370 | u8 val; |
371 | 371 | ||