summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/atombios_dp.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2014-03-18 07:48:14 +0400
committerChristian König <christian.koenig@amd.com>2014-03-25 16:13:13 +0400
commitf3381dfc9745bcd8b6be676ec4f68c52e71d24f1 (patch)
tree0faa6201d66a083ad5c484e6225c83b569adb37f /drivers/gpu/drm/radeon/atombios_dp.c
parent63ac07cdee6e1f2bf748ac3f28662e3c01a72496 (diff)
downloadlinux-f3381dfc9745bcd8b6be676ec4f68c52e71d24f1.tar.xz
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,
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];