Linux-Renesas-SoC Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] media: i2c: Add driver for RDACM21 camera module (squash!)
@ 2020-02-14  9:01 Kieran Bingham
  2020-02-14  9:01 ` [PATCH] media: i2c: Add RDACM20 driver (squash!) Kieran Bingham
  0 siblings, 1 reply; 2+ messages in thread
From: Kieran Bingham @ 2020-02-14  9:01 UTC (permalink / raw)
  To: linux-renesas-soc, Jacopo Mondi; +Cc: Kieran Bingham

Rebasing the GMSL work to the latest media/master branch requires fixing up the
RDACM21 to support the updated i2c apis.

 - Use new i2c_new_dummy_device API
---
 drivers/media/i2c/rdacm21.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c
index d7490371e5c7..229f23432b41 100644
--- a/drivers/media/i2c/rdacm21.c
+++ b/drivers/media/i2c/rdacm21.c
@@ -291,10 +291,9 @@ static int rdacm21_probe(struct i2c_client *client)
 		return -EINVAL;
 	}
 
-	dev->isp = i2c_new_dummy(client->adapter, OV490_I2C_ADDRESS);
-	if (!dev->isp) {
-		return -ENXIO;
-	}
+	dev->isp = i2c_new_dummy_device(client->adapter, OV490_I2C_ADDRESS);
+	if (IS_ERR(dev->isp))
+		return PTR_ERR(dev->isp);
 
 	ret = rdacm21_initialize(dev);
 	if (ret < 0)
-- 
2.20.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] media: i2c: Add RDACM20 driver (squash!)
  2020-02-14  9:01 [PATCH] media: i2c: Add driver for RDACM21 camera module (squash!) Kieran Bingham
@ 2020-02-14  9:01 ` Kieran Bingham
  0 siblings, 0 replies; 2+ messages in thread
From: Kieran Bingham @ 2020-02-14  9:01 UTC (permalink / raw)
  To: linux-renesas-soc, Jacopo Mondi; +Cc: Kieran Bingham

Rebasing the GMSL work to the latest media/master branch requires fixing up the
RDACM20 to support the updated i2c apis.

 - Use new i2c_new_dummy_device API

---
 drivers/media/i2c/rdacm20.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/media/i2c/rdacm20.c b/drivers/media/i2c/rdacm20.c
index 97026ee91898..0cd467378922 100644
--- a/drivers/media/i2c/rdacm20.c
+++ b/drivers/media/i2c/rdacm20.c
@@ -286,9 +286,10 @@ static int rdacm20_probe(struct i2c_client *client)
 	dev->serializer->client = client;
 
 	/* Create the dummy I2C client for the sensor. */
-	dev->sensor = i2c_new_dummy(client->adapter, OV10635_I2C_ADDRESS);
-	if (!dev->sensor) {
-		ret = -ENXIO;
+	dev->sensor = i2c_new_dummy_device(client->adapter,
+					   OV10635_I2C_ADDRESS);
+	if (IS_ERR(dev->sensor)) {
+		ret = PTR_ERR(dev->sensor);
 		goto error;
 	}
 
-- 
2.20.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14  9:01 [PATCH] media: i2c: Add driver for RDACM21 camera module (squash!) Kieran Bingham
2020-02-14  9:01 ` [PATCH] media: i2c: Add RDACM20 driver (squash!) Kieran Bingham

Linux-Renesas-SoC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-renesas-soc/0 linux-renesas-soc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-renesas-soc linux-renesas-soc/ https://lore.kernel.org/linux-renesas-soc \
		linux-renesas-soc@vger.kernel.org
	public-inbox-index linux-renesas-soc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-renesas-soc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git