mirror of https://gitee.com/openkylin/linux.git
media: cec: fill in cec chardev kobject to ease debugging
The cec chardev kobject has no name, which made it hard to debug when kobject debugging is turned on. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
9e98c678c2
commit
7dfccff14f
|
@ -126,6 +126,7 @@ static int __must_check cec_devnode_register(struct cec_devnode *devnode,
|
|||
/* Part 2: Initialize and register the character device */
|
||||
cdev_init(&devnode->cdev, &cec_devnode_fops);
|
||||
devnode->cdev.owner = owner;
|
||||
kobject_set_name(&devnode->cdev.kobj, "cec%d", devnode->minor);
|
||||
|
||||
ret = cdev_device_add(&devnode->cdev, &devnode->dev);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in New Issue