* [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 related [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 related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-14 9:01 UTC | newest]
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).