From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SvOE9-0004ni-K7 for barebox@lists.infradead.org; Sun, 29 Jul 2012 07:47:49 +0000 Received: by mail-pb0-f49.google.com with SMTP id rq13so8523245pbb.36 for ; Sun, 29 Jul 2012 00:47:46 -0700 (PDT) From: Marc Reilly Date: Sun, 29 Jul 2012 17:41:51 +1000 Message-Id: <1343547714-32740-5-git-send-email-marc@cpdesign.com.au> In-Reply-To: <1343547714-32740-1-git-send-email-marc@cpdesign.com.au> References: <1343547714-32740-1-git-send-email-marc@cpdesign.com.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/7] i2c: device id default to -1 for auto assignment To: barebox@lists.infradead.org Signed-off-by: Marc Reilly --- drivers/i2c/i2c.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c index 15f5507..c0d8fa2 100644 --- a/drivers/i2c/i2c.c +++ b/drivers/i2c/i2c.c @@ -251,6 +251,7 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter, strcpy(client->dev.name, chip->type); client->dev.type_data = client; client->dev.platform_data = chip->platform_data; + client->dev.id = -1; client->adapter = adapter; client->addr = chip->addr; -- 1.7.7 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox