From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64107 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753976Ab0KMOhN (ORCPT ); Sat, 13 Nov 2010 09:37:13 -0500 Message-ID: <4CDEA28F.8040507@redhat.com> Date: Sat, 13 Nov 2010 12:37:03 -0200 From: Mauro Carvalho Chehab MIME-Version: 1.0 To: Jean Delvare CC: Linux I2C , LMML , Hans Verkuil , Jarod Wilson Subject: Re: [PATCH 3/3] i2c: Mark i2c_adapter.id as deprecated References: <20101105211001.1cc93ac7@endymion.delvare> In-Reply-To: <20101105211001.1cc93ac7@endymion.delvare> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-ID: Sender: 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 > Cc: Hans Verkuil > Cc: Jarod Wilson Acked-by: Mauro Carvalho Chehab > --- > 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; > >