From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
To: linux-renesas-soc@vger.kernel.org, Jacopo Mondi <jacopo@jmondi.org>
Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Subject: [PATCH] media: i2c: Add driver for RDACM21 camera module (squash!)
Date: Fri, 14 Feb 2020 09:01:19 +0000 [thread overview]
Message-ID: <20200214090120.31507-1-kieran.bingham+renesas@ideasonboard.com> (raw)
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
next reply other threads:[~2020-02-14 9:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-14 9:01 Kieran Bingham [this message]
2020-02-14 9:01 ` [PATCH] media: i2c: Add RDACM20 driver (squash!) Kieran Bingham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200214090120.31507-1-kieran.bingham+renesas@ideasonboard.com \
--to=kieran.bingham+renesas@ideasonboard.com \
--cc=jacopo@jmondi.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.