From: "Christian König" <christian.koenig@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>, dri-devel@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH 1/4] drm/radeon/dp: use i2c_get_adapdata rather than casting
Date: Tue, 18 Mar 2014 17:09:38 +0100 [thread overview]
Message-ID: <53286FC2.7020306@amd.com> (raw)
In-Reply-To: <1395114497-1948-1-git-send-email-alexander.deucher@amd.com>
Am 18.03.2014 04:48, schrieb Alex Deucher:
> Minor code cleanup.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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];
prev parent reply other threads:[~2014-03-18 16:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 3:48 [PATCH 1/4] drm/radeon/dp: use i2c_get_adapdata rather than casting Alex Deucher
2014-03-18 3:48 ` [PATCH 2/4] drm/radeon/dp: move sink power control to a separate function Alex Deucher
2014-03-18 3:48 ` [PATCH 3/4] drm/radeon/atom: rework encoder enable/disable sequence Alex Deucher
2014-03-18 3:48 ` [PATCH 4/4] drm/radeon: clarify special handling in i2c over aux Alex Deucher
2014-03-18 16:09 ` Christian König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53286FC2.7020306@amd.com \
--to=christian.koenig@amd.com \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox