Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3381dfc authored by Alex Deucher's avatar Alex Deucher Committed by Christian König
Browse files

drm/radeon/dp: use i2c_get_adapdata rather than casting



Minor code cleanup.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
parent 63ac07cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -236,7 +236,7 @@ int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode,
			 u8 write_byte, u8 *read_byte)
			 u8 write_byte, u8 *read_byte)
{
{
	struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
	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;
	u16 address = algo_data->address;
	u8 msg[5];
	u8 msg[5];
	u8 reply[2];
	u8 reply[2];