Commit 409426cb authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Mauro Carvalho Chehab

media: imx274: don't hard-code the subdev name to DRIVER_NAME

Forcibly setting the subdev name to DRIVER_NAME (i.e. "IMX274") makes
it non-unique and less informative.

Let the driver use the default name from i2c, e.g. "IMX274 2-001a".
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 7d2332c7
...@@ -1885,7 +1885,6 @@ static int imx274_probe(struct i2c_client *client, ...@@ -1885,7 +1885,6 @@ static int imx274_probe(struct i2c_client *client,
imx274->client = client; imx274->client = client;
sd = &imx274->sd; sd = &imx274->sd;
v4l2_i2c_subdev_init(sd, client, &imx274_subdev_ops); v4l2_i2c_subdev_init(sd, client, &imx274_subdev_ops);
strscpy(sd->name, DRIVER_NAME, sizeof(sd->name));
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS; sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS;
/* initialize subdev media pad */ /* initialize subdev media pad */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment