* [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated
@ 2010-11-05 20:10 Jean Delvare
2010-11-07 18:57 ` Jarod Wilson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jean Delvare @ 2010-11-05 20:10 UTC (permalink / raw)
To: Linux I2C, LMML; +Cc: Hans Verkuil, Jarod Wilson
It's about time to make it clear that i2c_adapter.id is deprecated.
Hopefully this will remind the last user to move over to a different
strategy.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Jarod Wilson <jarod@redhat.com>
---
drivers/i2c/i2c-mux.c | 1 -
include/linux/i2c.h | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.37-rc1.orig/include/linux/i2c.h 2010-11-05 13:55:17.000000000 +0100
+++ linux-2.6.37-rc1/include/linux/i2c.h 2010-11-05 15:41:20.000000000 +0100
@@ -353,7 +353,7 @@ struct i2c_algorithm {
*/
struct i2c_adapter {
struct module *owner;
- unsigned int id;
+ unsigned int id __deprecated;
unsigned int class; /* classes to allow probing for */
const struct i2c_algorithm *algo; /* the algorithm to access the bus */
void *algo_data;
--- linux-2.6.37-rc1.orig/drivers/i2c/i2c-mux.c 2010-11-05 16:06:18.000000000 +0100
+++ linux-2.6.37-rc1/drivers/i2c/i2c-mux.c 2010-11-05 16:06:33.000000000 +0100
@@ -120,7 +120,6 @@ struct i2c_adapter *i2c_add_mux_adapter(
snprintf(priv->adap.name, sizeof(priv->adap.name),
"i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id);
priv->adap.owner = THIS_MODULE;
- priv->adap.id = parent->id;
priv->adap.algo = &priv->algo;
priv->adap.algo_data = priv;
priv->adap.dev.parent = &parent->dev;
--
Jean Delvare
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated
2010-11-05 20:10 [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated Jean Delvare
@ 2010-11-07 18:57 ` Jarod Wilson
2010-11-13 14:37 ` Mauro Carvalho Chehab
2010-11-13 14:40 ` Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Jarod Wilson @ 2010-11-07 18:57 UTC (permalink / raw)
To: Jean Delvare; +Cc: Linux I2C, LMML, Hans Verkuil, Jarod Wilson
On Nov 5, 2010, at 4:10 PM, Jean Delvare wrote:
> It's about time to make it clear that i2c_adapter.id is deprecated.
> Hopefully this will remind the last user to move over to a different
> strategy.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Hans Verkuil <hverkuil@xs4all.nl>
> Cc: Jarod Wilson <jarod@redhat.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
--
Jarod Wilson
jarod@wilsonet.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated
2010-11-05 20:10 [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated Jean Delvare
2010-11-07 18:57 ` Jarod Wilson
@ 2010-11-13 14:37 ` Mauro Carvalho Chehab
2010-11-13 14:40 ` Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2010-11-13 14:37 UTC (permalink / raw)
To: Jean Delvare; +Cc: Linux I2C, LMML, Hans Verkuil, Jarod Wilson
Em 05-11-2010 18:10, Jean Delvare escreveu:
> It's about time to make it clear that i2c_adapter.id is deprecated.
> Hopefully this will remind the last user to move over to a different
> strategy.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Hans Verkuil <hverkuil@xs4all.nl>
> Cc: Jarod Wilson <jarod@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
> drivers/i2c/i2c-mux.c | 1 -
> include/linux/i2c.h | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> --- linux-2.6.37-rc1.orig/include/linux/i2c.h 2010-11-05 13:55:17.000000000 +0100
> +++ linux-2.6.37-rc1/include/linux/i2c.h 2010-11-05 15:41:20.000000000 +0100
> @@ -353,7 +353,7 @@ struct i2c_algorithm {
> */
> struct i2c_adapter {
> struct module *owner;
> - unsigned int id;
> + unsigned int id __deprecated;
> unsigned int class; /* classes to allow probing for */
> const struct i2c_algorithm *algo; /* the algorithm to access the bus */
> void *algo_data;
> --- linux-2.6.37-rc1.orig/drivers/i2c/i2c-mux.c 2010-11-05 16:06:18.000000000 +0100
> +++ linux-2.6.37-rc1/drivers/i2c/i2c-mux.c 2010-11-05 16:06:33.000000000 +0100
> @@ -120,7 +120,6 @@ struct i2c_adapter *i2c_add_mux_adapter(
> snprintf(priv->adap.name, sizeof(priv->adap.name),
> "i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id);
> priv->adap.owner = THIS_MODULE;
> - priv->adap.id = parent->id;
> priv->adap.algo = &priv->algo;
> priv->adap.algo_data = priv;
> priv->adap.dev.parent = &parent->dev;
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated
2010-11-05 20:10 [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated Jean Delvare
2010-11-07 18:57 ` Jarod Wilson
2010-11-13 14:37 ` Mauro Carvalho Chehab
@ 2010-11-13 14:40 ` Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Hans Verkuil @ 2010-11-13 14:40 UTC (permalink / raw)
To: Jean Delvare; +Cc: Linux I2C, LMML, Jarod Wilson
On Friday, November 05, 2010 21:10:01 Jean Delvare wrote:
> It's about time to make it clear that i2c_adapter.id is deprecated.
> Hopefully this will remind the last user to move over to a different
> strategy.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Hans Verkuil <hverkuil@xs4all.nl>
> Cc: Jarod Wilson <jarod@redhat.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
> ---
> drivers/i2c/i2c-mux.c | 1 -
> include/linux/i2c.h | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> --- linux-2.6.37-rc1.orig/include/linux/i2c.h 2010-11-05 13:55:17.000000000 +0100
> +++ linux-2.6.37-rc1/include/linux/i2c.h 2010-11-05 15:41:20.000000000 +0100
> @@ -353,7 +353,7 @@ struct i2c_algorithm {
> */
> struct i2c_adapter {
> struct module *owner;
> - unsigned int id;
> + unsigned int id __deprecated;
> unsigned int class; /* classes to allow probing for */
> const struct i2c_algorithm *algo; /* the algorithm to access the bus */
> void *algo_data;
> --- linux-2.6.37-rc1.orig/drivers/i2c/i2c-mux.c 2010-11-05 16:06:18.000000000 +0100
> +++ linux-2.6.37-rc1/drivers/i2c/i2c-mux.c 2010-11-05 16:06:33.000000000 +0100
> @@ -120,7 +120,6 @@ struct i2c_adapter *i2c_add_mux_adapter(
> snprintf(priv->adap.name, sizeof(priv->adap.name),
> "i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id);
> priv->adap.owner = THIS_MODULE;
> - priv->adap.id = parent->id;
> priv->adap.algo = &priv->algo;
> priv->adap.algo_data = priv;
> priv->adap.dev.parent = &parent->dev;
>
>
>
--
Hans Verkuil - video4linux developer - sponsored by Cisco
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-13 14:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 20:10 [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated Jean Delvare
2010-11-07 18:57 ` Jarod Wilson
2010-11-13 14:37 ` Mauro Carvalho Chehab
2010-11-13 14:40 ` Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox