projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ac07c
)
drm/radeon/dp: use i2c_get_adapdata rather than casting
author
Alex Deucher
<alexdeucher@gmail.com>
Tue, 18 Mar 2014 03:48:14 +0000
(23:48 -0400)
committer
Christian König
<christian.koenig@amd.com>
Tue, 25 Mar 2014 12:13:13 +0000
(13:13 +0100)
Minor code cleanup.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/atombios_dp.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/atombios_dp.c
b/drivers/gpu/drm/radeon/atombios_dp.c
index 4ad7643fce5fe9bdb8a479727400ae173475bb37..c79ba8a886bd085432bc2c53edbf3971afc19378 100644
(file)
--- a/
drivers/gpu/drm/radeon/atombios_dp.c
+++ b/
drivers/gpu/drm/radeon/atombios_dp.c
@@
-236,7
+236,7
@@
int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode,
u8 write_byte, u8 *read_byte)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
- struct radeon_i2c_chan *auxch =
(struct radeon_i2c_chan *)adapter
;
+ struct radeon_i2c_chan *auxch =
i2c_get_adapdata(adapter)
;
u16 address = algo_data->address;
u8 msg[5];
u8 reply[2];