[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190619171806.30116-1-wsa+renesas@sang-engineering.com>
Date: Wed, 19 Jun 2019 19:18:06 +0200
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: linux-kernel@...r.kernel.org
Cc: Lee Jones <lee.jones@...aro.org>,
linux-renesas-soc@...r.kernel.org,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Peter Rosin <peda@...ntia.se>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
Subject: [PATCH] mfd: da9063: occupy second I2C address, too
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 <wsa+renesas@...g-engineering.com>
Reviewed-by: Peter Rosin <peda@...ntia.se>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@...libre.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
---
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);
}
--
2.20.1
Powered by blists - more mailing lists