mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 21:15:10 -05:00
media: i2c: imx214: Drop dev argument from imx214_parse_fwnode()
The device can be accessed from struct imx214. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: André Apitzsch <git@apitzsch.eu> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
6f1882872c
commit
84aa4d2f59
@@ -1324,10 +1324,11 @@ static int imx214_identify_module(struct imx214 *imx214)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int imx214_parse_fwnode(struct device *dev, struct imx214 *imx214)
|
||||
static int imx214_parse_fwnode(struct imx214 *imx214)
|
||||
{
|
||||
struct v4l2_fwnode_endpoint *bus_cfg = &imx214->bus_cfg;
|
||||
struct fwnode_handle *endpoint;
|
||||
struct device *dev = imx214->dev;
|
||||
unsigned int i;
|
||||
int ret;
|
||||
|
||||
@@ -1415,7 +1416,7 @@ static int imx214_probe(struct i2c_client *client)
|
||||
return dev_err_probe(dev, PTR_ERR(imx214->regmap),
|
||||
"failed to initialize CCI\n");
|
||||
|
||||
ret = imx214_parse_fwnode(dev, imx214);
|
||||
ret = imx214_parse_fwnode(imx214);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user