media: smiapp: Use v4l2_i2c_subdev_set_name
Use v4l2_i2c_subdev_set_name() to set the name of the smiapp driver's sub-devices. There is no functional change. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
0658293012
commit
18ce848579
@@ -2617,9 +2617,7 @@ static void smiapp_create_subdev(struct smiapp_sensor *sensor,
|
||||
ssd->npads = num_pads;
|
||||
ssd->source_pad = num_pads - 1;
|
||||
|
||||
snprintf(ssd->sd.name,
|
||||
sizeof(ssd->sd.name), "%s %s %d-%4.4x", sensor->minfo.name,
|
||||
name, i2c_adapter_id(client->adapter), client->addr);
|
||||
v4l2_i2c_subdev_set_name(&ssd->sd, client, sensor->minfo.name, name);
|
||||
|
||||
smiapp_get_native_size(ssd, &ssd->sink_fmt);
|
||||
|
||||
|
Reference in New Issue
Block a user