aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
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 13:13:13 +0100
commitf3381dfc9745bcd8b6be676ec4f68c52e71d24f1 (patch)
tree0faa6201d66a083ad5c484e6225c83b569adb37f /drivers/gpu/drm/radeon
parentdrm/bridge/ptn3460: fix modular build (diff)
downloadlinux-dev-f3381dfc9745bcd8b6be676ec4f68c52e71d24f1.tar.xz
linux-dev-f3381dfc9745bcd8b6be676ec4f68c52e71d24f1.zip
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')
-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];