aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/atombios_dp.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2014-03-17 23:48:14 -0400
committerChristian König <christian.koenig@amd.com>2014-03-25 08:13:13 -0400
commitf3381dfc9745bcd8b6be676ec4f68c52e71d24f1 (patch)
tree0faa6201d66a083ad5c484e6225c83b569adb37f /drivers/gpu/drm/radeon/atombios_dp.c
parent63ac07cdee6e1f2bf748ac3f28662e3c01a72496 (diff)
drm/radeon/dp: use i2c_get_adapdata rather than casting
Minor code cleanup. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_dp.c')
-rw-r--r--drivers/gpu/drm/radeon/atombios_dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c
index 4ad7643fce5f..c79ba8a886bd 100644
--- 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,
236 u8 write_byte, u8 *read_byte) 236 u8 write_byte, u8 *read_byte)
237{ 237{
238 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data; 238 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
239 struct radeon_i2c_chan *auxch = (struct radeon_i2c_chan *)adapter; 239 struct radeon_i2c_chan *auxch = i2c_get_adapdata(adapter);
240 u16 address = algo_data->address; 240 u16 address = algo_data->address;
241 u8 msg[5]; 241 u8 msg[5];
242 u8 reply[2]; 242 u8 reply[2];