[PATCH] media: i2c: Add RDACM20 driver (squash!)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux