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 | |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 14 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h | 14 |
2 files changed, 14 insertions, 14 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 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h index d81e19b53973..63c2ff7499e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h | |||
@@ -25,20 +25,20 @@ | |||
25 | #define __AMDGPU_I2C_H__ | 25 | #define __AMDGPU_I2C_H__ |
26 | 26 | ||
27 | struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, | 27 | struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, |
28 | struct amdgpu_i2c_bus_rec *rec, | 28 | const struct amdgpu_i2c_bus_rec *rec, |
29 | const char *name); | 29 | const char *name); |
30 | void amdgpu_i2c_destroy(struct amdgpu_i2c_chan *i2c); | 30 | void amdgpu_i2c_destroy(struct amdgpu_i2c_chan *i2c); |
31 | void amdgpu_i2c_init(struct amdgpu_device *adev); | 31 | void amdgpu_i2c_init(struct amdgpu_device *adev); |
32 | void amdgpu_i2c_fini(struct amdgpu_device *adev); | 32 | void amdgpu_i2c_fini(struct amdgpu_device *adev); |
33 | void amdgpu_i2c_add(struct amdgpu_device *adev, | 33 | void amdgpu_i2c_add(struct amdgpu_device *adev, |
34 | struct amdgpu_i2c_bus_rec *rec, | 34 | const struct amdgpu_i2c_bus_rec *rec, |
35 | const char *name); | 35 | const char *name); |
36 | struct amdgpu_i2c_chan * | 36 | struct amdgpu_i2c_chan * |
37 | amdgpu_i2c_lookup(struct amdgpu_device *adev, | 37 | amdgpu_i2c_lookup(struct amdgpu_device *adev, |
38 | struct amdgpu_i2c_bus_rec *i2c_bus); | 38 | const struct amdgpu_i2c_bus_rec *i2c_bus); |
39 | void | 39 | void |
40 | amdgpu_i2c_router_select_ddc_port(struct amdgpu_connector *amdgpu_connector); | 40 | amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *connector); |
41 | void | 41 | void |
42 | amdgpu_i2c_router_select_cd_port(struct amdgpu_connector *amdgpu_connector); | 42 | amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *connector); |
43 | 43 | ||
44 | #endif | 44 | #endif |