Commit 18ce8485 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 06582930
...@@ -2617,9 +2617,7 @@ static void smiapp_create_subdev(struct smiapp_sensor *sensor, ...@@ -2617,9 +2617,7 @@ static void smiapp_create_subdev(struct smiapp_sensor *sensor,
ssd->npads = num_pads; ssd->npads = num_pads;
ssd->source_pad = num_pads - 1; ssd->source_pad = num_pads - 1;
snprintf(ssd->sd.name, v4l2_i2c_subdev_set_name(&ssd->sd, client, sensor->minfo.name, name);
sizeof(ssd->sd.name), "%s %s %d-%4.4x", sensor->minfo.name,
name, i2c_adapter_id(client->adapter), client->addr);
smiapp_get_native_size(ssd, &ssd->sink_fmt); smiapp_get_native_size(ssd, &ssd->sink_fmt);
...@@ -3064,9 +3062,9 @@ static int smiapp_probe(struct i2c_client *client, ...@@ -3064,9 +3062,9 @@ static int smiapp_probe(struct i2c_client *client,
if (sensor->minfo.smiapp_profile == SMIAPP_PROFILE_0) if (sensor->minfo.smiapp_profile == SMIAPP_PROFILE_0)
sensor->pll.flags |= SMIAPP_PLL_FLAG_NO_OP_CLOCKS; sensor->pll.flags |= SMIAPP_PLL_FLAG_NO_OP_CLOCKS;
smiapp_create_subdev(sensor, sensor->scaler, "scaler", 2); smiapp_create_subdev(sensor, sensor->scaler, " scaler", 2);
smiapp_create_subdev(sensor, sensor->binner, "binner", 2); smiapp_create_subdev(sensor, sensor->binner, " binner", 2);
smiapp_create_subdev(sensor, sensor->pixel_array, "pixel_array", 1); smiapp_create_subdev(sensor, sensor->pixel_array, " pixel_array", 1);
dev_dbg(&client->dev, "profile %d\n", sensor->minfo.smiapp_profile); dev_dbg(&client->dev, "profile %d\n", sensor->minfo.smiapp_profile);
......
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