Skip to contentSkip to conversation

tvp514x/tvp7002 remove manual setting of subdev names

PATCH New Prabhakar Lad 1 participant 3 messages Jun 24, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

cover tvp514x/tvp7002 remove manual setting of subdev names

From: "Lad, Prabhakar" <[email protected]>

This patch series removes manual setting of subdev names, as ideally the subdev names must be unique and this would not be the case if there are two devices.

Lad, Prabhakar (2):
media: i2c: tvp7002: remove manual setting of subdev name
media: i2c: tvp514x: remove manual setting of subdev name

 drivers/media/i2c/tvp514x.c |    1 -
 drivers/media/i2c/tvp7002.c |    1 -
 2 files changed, 2 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 media: i2c: tvp7002: remove manual setting of subdev name

From: "Lad, Prabhakar" <[email protected]>

This patch removes manual setting of subdev name in the probe, ideally subdev names must be unique.

---
 drivers/media/i2c/tvp7002.c |    1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/tvp7002.c +0 -1
index 4896024..ba8a7b5 100644
@@ -1065,7 +1065,6 @@ static int tvp7002_probe(struct i2c_client *c, const struct i2c_device_id *id)
 	error = tvp7002_s_dv_timings(sd, &timings);
 
 #if defined(CONFIG_MEDIA_CONTROLLER)
-	strlcpy(sd->name, TVP7002_MODULE_NAME, sizeof(sd->name));
 	device->pad.flags = MEDIA_PAD_FL_SOURCE;
 	device->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
 	device->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER;
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 media: i2c: tvp514x: remove manual setting of subdev name

In reply to Prabhakar Lad

From: "Lad, Prabhakar" <[email protected]>

This patch removes manual setting of subdev name in the probe, ideally subdev names must be unique.

---
 drivers/media/i2c/tvp514x.c |    1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/tvp514x.c +0 -1
index 864eb14..6578976 100644
@@ -1148,7 +1148,6 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id)
 	/* Register with V4L2 layer as slave device */
 	sd = &decoder->sd;
 	v4l2_i2c_subdev_init(sd, client, &tvp514x_ops);
-	strlcpy(sd->name, TVP514X_MODULE_NAME, sizeof(sd->name));
 
 #if defined(CONFIG_MEDIA_CONTROLLER)
 	decoder->pad.flags = MEDIA_PAD_FL_SOURCE;
Signature · 1 line
1.7.9.5