diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2018-08-24 12:35:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-17 15:11:38 -0400 |
commit | 409426cb796af011024a33c412126219224321a0 (patch) | |
tree | 9222dc6baf0d997c1ed81d80850b2d40eb801cd5 /drivers/media/i2c | |
parent | 7d2332c76d1bbc81bd9ebee839c2c90d961ac182 (diff) | |
download | blackbird-obmc-linux-409426cb796af011024a33c412126219224321a0.tar.gz blackbird-obmc-linux-409426cb796af011024a33c412126219224321a0.zip |
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: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/imx274.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index 06757f01bab8..570706695ca7 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -1885,7 +1885,6 @@ static int imx274_probe(struct i2c_client *client, imx274->client = client; sd = &imx274->sd; 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; /* initialize subdev media pad */ |