Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a85bdace authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10091): mt9m001 mt9v022: simplify pointer derefernces

parent 06daa1af
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -590,7 +590,7 @@ static int mt9m001_video_probe(struct soc_camera_device *icd)
		return -ENODEV;
		return -ENODEV;


	/* Enable the chip */
	/* Enable the chip */
	data = reg_write(&mt9m001->icd, MT9M001_CHIP_ENABLE, 1);
	data = reg_write(icd, MT9M001_CHIP_ENABLE, 1);
	dev_dbg(&icd->dev, "write: %d\n", data);
	dev_dbg(&icd->dev, "write: %d\n", data);


	/* Read out the chip version register */
	/* Read out the chip version register */
@@ -642,8 +642,8 @@ static void mt9m001_video_remove(struct soc_camera_device *icd)
	struct mt9m001 *mt9m001 = container_of(icd, struct mt9m001, icd);
	struct mt9m001 *mt9m001 = container_of(icd, struct mt9m001, icd);


	dev_dbg(&icd->dev, "Video %x removed: %p, %p\n", mt9m001->client->addr,
	dev_dbg(&icd->dev, "Video %x removed: %p, %p\n", mt9m001->client->addr,
		mt9m001->icd.dev.parent, mt9m001->icd.vdev);
		icd->dev.parent, icd->vdev);
	soc_camera_video_stop(&mt9m001->icd);
	soc_camera_video_stop(icd);
}
}


static int mt9m001_probe(struct i2c_client *client,
static int mt9m001_probe(struct i2c_client *client,
+2 −2
Original line number Original line Diff line number Diff line
@@ -766,8 +766,8 @@ static void mt9v022_video_remove(struct soc_camera_device *icd)
	struct mt9v022 *mt9v022 = container_of(icd, struct mt9v022, icd);
	struct mt9v022 *mt9v022 = container_of(icd, struct mt9v022, icd);


	dev_dbg(&icd->dev, "Video %x removed: %p, %p\n", mt9v022->client->addr,
	dev_dbg(&icd->dev, "Video %x removed: %p, %p\n", mt9v022->client->addr,
		mt9v022->icd.dev.parent, mt9v022->icd.vdev);
		icd->dev.parent, icd->vdev);
	soc_camera_video_stop(&mt9v022->icd);
	soc_camera_video_stop(icd);
}
}


static int mt9v022_probe(struct i2c_client *client,
static int mt9v022_probe(struct i2c_client *client,