mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 20:54:20 +00:00
[media] noon010pc30: Make subdev name independent of the I2C slave address
Initialize the subdev name properly so it doesn't have an I2C bus and slave address appended to it. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
14b702dd71
commit
2138d73b69
1 changed files with 1 additions and 1 deletions
|
@ -725,8 +725,8 @@ static int noon010_probe(struct i2c_client *client,
|
||||||
|
|
||||||
mutex_init(&info->lock);
|
mutex_init(&info->lock);
|
||||||
sd = &info->sd;
|
sd = &info->sd;
|
||||||
strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
|
|
||||||
v4l2_i2c_subdev_init(sd, client, &noon010_ops);
|
v4l2_i2c_subdev_init(sd, client, &noon010_ops);
|
||||||
|
strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
|
||||||
|
|
||||||
sd->internal_ops = &noon010_subdev_internal_ops;
|
sd->internal_ops = &noon010_subdev_internal_ops;
|
||||||
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
|
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue