* [PATCH] drm: tda998x: Change cec_write address type
@ 2015-01-07 8:42 Jean-Francois Moine
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Francois Moine @ 2015-01-07 8:42 UTC (permalink / raw)
To: Russell King, dri-devel
The CEC registers of the TDA998x have no access by page,
so, a 8 bits address is enough.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
---
drivers/gpu/drm/i2c/tda998x_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index d476279..70658af 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -342,7 +342,7 @@ struct tda998x_priv {
#define TDA19988 0x0301
static void
-cec_write(struct tda998x_priv *priv, uint16_t addr, uint8_t val)
+cec_write(struct tda998x_priv *priv, uint8_t addr, uint8_t val)
{
struct i2c_client *client = priv->cec;
uint8_t buf[] = {addr, val};
--
2.1.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <20150107084851.41B9DCA92D4@smtpfb2-g21.free.fr>]
* Re: [PATCH] drm: tda998x: Change cec_write address type
[not found] <20150107084851.41B9DCA92D4@smtpfb2-g21.free.fr>
@ 2015-01-09 16:56 ` Russell King - ARM Linux
2015-01-09 17:24 ` Jean-Francois Moine
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2015-01-09 16:56 UTC (permalink / raw)
To: Jean-Francois Moine; +Cc: dri-devel
On Wed, Jan 07, 2015 at 09:42:19AM +0100, Jean-Francois Moine wrote:
> The CEC registers of the TDA998x have no access by page,
> so, a 8 bits address is enough.
>
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> ---
> drivers/gpu/drm/i2c/tda998x_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
> index d476279..70658af 100644
> --- a/drivers/gpu/drm/i2c/tda998x_drv.c
> +++ b/drivers/gpu/drm/i2c/tda998x_drv.c
> @@ -342,7 +342,7 @@ struct tda998x_priv {
> #define TDA19988 0x0301
>
> static void
> -cec_write(struct tda998x_priv *priv, uint16_t addr, uint8_t val)
> +cec_write(struct tda998x_priv *priv, uint8_t addr, uint8_t val)
I'm not bothered by this change - is there a pressing reason to make it?
Looking at the generated code, this change will be a no-op, so it's purely
cosmetic from what I can determine.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm: tda998x: Change cec_write address type
2015-01-09 16:56 ` Russell King - ARM Linux
@ 2015-01-09 17:24 ` Jean-Francois Moine
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Francois Moine @ 2015-01-09 17:24 UTC (permalink / raw)
To: Russell King - ARM Linux; +Cc: dri-devel
On Fri, 9 Jan 2015 16:56:30 +0000
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
> > diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
> > index d476279..70658af 100644
> > --- a/drivers/gpu/drm/i2c/tda998x_drv.c
> > +++ b/drivers/gpu/drm/i2c/tda998x_drv.c
> > @@ -342,7 +342,7 @@ struct tda998x_priv {
> > #define TDA19988 0x0301
> >
> > static void
> > -cec_write(struct tda998x_priv *priv, uint16_t addr, uint8_t val)
> > +cec_write(struct tda998x_priv *priv, uint8_t addr, uint8_t val)
>
> I'm not bothered by this change - is there a pressing reason to make it?
>
> Looking at the generated code, this change will be a no-op, so it's purely
> cosmetic from what I can determine.
Yes. It is just to have the same addr type in cec_read and cec_write.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-09 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 8:42 [PATCH] drm: tda998x: Change cec_write address type Jean-Francois Moine
[not found] <20150107084851.41B9DCA92D4@smtpfb2-g21.free.fr>
2015-01-09 16:56 ` Russell King - ARM Linux
2015-01-09 17:24 ` Jean-Francois Moine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox