From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Christian_K=F6nig?= Subject: Re: [PATCH 1/4] drm/radeon/dp: use i2c_get_adapdata rather than casting Date: Tue, 18 Mar 2014 17:09:38 +0100 Message-ID: <53286FC2.7020306@amd.com> References: <1395114497-1948-1-git-send-email-alexander.deucher@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D5B08DF1E for ; Tue, 18 Mar 2014 09:09:49 -0700 (PDT) In-Reply-To: <1395114497-1948-1-git-send-email-alexander.deucher@amd.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Alex Deucher , dri-devel@lists.freedesktop.org Cc: Alex Deucher List-Id: dri-devel@lists.freedesktop.org Am 18.03.2014 04:48, schrieb Alex Deucher: > Minor code cleanup. > > Signed-off-by: Alex Deucher Added to my 3.15 queue (http://cgit.freedesktop.org/~deathsimple/linux/log/?h=drm-next-3.15-wip). Thanks, Christian. > --- > drivers/gpu/drm/radeon/atombios_dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c > index 4ad7643..c79ba8a 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];