From patchwork Wed Jun 19 17:18:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 11004829 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 73E7E14DB for ; Wed, 19 Jun 2019 17:18:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F5EF28426 for ; Wed, 19 Jun 2019 17:18:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E559284AF; Wed, 19 Jun 2019 17:18:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BBC828426 for ; Wed, 19 Jun 2019 17:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbfFSRSL (ORCPT ); Wed, 19 Jun 2019 13:18:11 -0400 Received: from sauhun.de ([88.99.104.3]:60004 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbfFSRSL (ORCPT ); Wed, 19 Jun 2019 13:18:11 -0400 Received: from localhost (p5486CF02.dip0.t-ipconnect.de [84.134.207.2]) by pokefinder.org (Postfix) with ESMTPSA id 553832C353A; Wed, 19 Jun 2019 19:18:09 +0200 (CEST) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: Lee Jones , linux-renesas-soc@vger.kernel.org, Wolfram Sang , Peter Rosin , Bartosz Golaszewski , Kieran Bingham Subject: [PATCH] mfd: da9063: occupy second I2C address, too Date: Wed, 19 Jun 2019 19:18:06 +0200 Message-Id: <20190619171806.30116-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Even though we don't use it yet, we should mark the second I2C address this device is listening to as used. Signed-off-by: Wolfram Sang Reviewed-by: Peter Rosin Reviewed-by: Bartosz Golaszewski Reviewed-by: Kieran Bingham --- drivers/mfd/da9063-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 455de74c0dd2..2133b09f6e7a 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -221,6 +221,8 @@ static int da9063_i2c_probe(struct i2c_client *i2c, return ret; } + devm_i2c_new_dummy_device(&i2c->dev, i2c->adapter, i2c->addr + 1); + return da9063_device_init(da9063, i2c->irq); }