提交 de88f31c 编写于 作者: D David Härdeman 提交者: Mauro Carvalho Chehab

V4L/DVB: rename sysfs remote controller devices from rcrcv to rc

When the remote controller class is anyway being renamed from ir to rc
this would be a good time to also rename the devices from rcrcvX to rcX.

I know we haven't reached any agreement on whether transmission will
eventually be handled by the same device, but this change will at
least make the device name non-receive-specific which will make it
possible in the future (and if a different approach is finally
agreed upon, the device name still works).
Signed-off-by: NDavid Härdeman <david@hardeman.nu>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 6eb9435b
...@@ -40,7 +40,7 @@ static struct class ir_input_class = { ...@@ -40,7 +40,7 @@ static struct class ir_input_class = {
* @buf: a pointer to the output buffer * @buf: a pointer to the output buffer
* *
* This routine is a callback routine for input read the IR protocol type. * This routine is a callback routine for input read the IR protocol type.
* it is trigged by reading /sys/class/rc/rcrcv?/current_protocol. * it is trigged by reading /sys/class/rc/rc?/current_protocol.
* It returns the protocol name, as understood by the driver. * It returns the protocol name, as understood by the driver.
*/ */
static ssize_t show_protocol(struct device *d, static ssize_t show_protocol(struct device *d,
...@@ -75,7 +75,7 @@ static ssize_t show_protocol(struct device *d, ...@@ -75,7 +75,7 @@ static ssize_t show_protocol(struct device *d,
* @len: length of the input buffer * @len: length of the input buffer
* *
* This routine is a callback routine for changing the IR protocol type. * This routine is a callback routine for changing the IR protocol type.
* it is trigged by reading /sys/class/rc/rcrcv?/current_protocol. * it is trigged by reading /sys/class/rc/rc?/current_protocol.
* It changes the IR the protocol name, if the IR type is recognized * It changes the IR the protocol name, if the IR type is recognized
* by the driver. * by the driver.
* If an unknown protocol name is used, returns -EINVAL. * If an unknown protocol name is used, returns -EINVAL.
...@@ -172,7 +172,7 @@ static struct device_type ir_dev_type = { ...@@ -172,7 +172,7 @@ static struct device_type ir_dev_type = {
}; };
/** /**
* ir_register_class() - creates the sysfs for /sys/class/rc/rcrcv? * ir_register_class() - creates the sysfs for /sys/class/rc/rc?
* @input_dev: the struct input_dev descriptor of the device * @input_dev: the struct input_dev descriptor of the device
* *
* This routine is used to register the syfs code for IR class * This routine is used to register the syfs code for IR class
...@@ -192,7 +192,7 @@ int ir_register_class(struct input_dev *input_dev) ...@@ -192,7 +192,7 @@ int ir_register_class(struct input_dev *input_dev)
ir_dev->dev.type = &ir_dev_type; ir_dev->dev.type = &ir_dev_type;
ir_dev->dev.class = &ir_input_class; ir_dev->dev.class = &ir_input_class;
ir_dev->dev.parent = input_dev->dev.parent; ir_dev->dev.parent = input_dev->dev.parent;
dev_set_name(&ir_dev->dev, "rcrcv%d", devno); dev_set_name(&ir_dev->dev, "rc%d", devno);
dev_set_drvdata(&ir_dev->dev, ir_dev); dev_set_drvdata(&ir_dev->dev, ir_dev);
rc = device_register(&ir_dev->dev); rc = device_register(&ir_dev->dev);
if (rc) if (rc)
...@@ -223,7 +223,7 @@ int ir_register_class(struct input_dev *input_dev) ...@@ -223,7 +223,7 @@ int ir_register_class(struct input_dev *input_dev)
/** /**
* ir_unregister_class() - removes the sysfs for sysfs for * ir_unregister_class() - removes the sysfs for sysfs for
* /sys/class/rc/rcrcv? * /sys/class/rc/rc?
* @input_dev: the struct input_dev descriptor of the device * @input_dev: the struct input_dev descriptor of the device
* *
* This routine is used to unregister the syfs code for IR class * This routine is used to unregister the syfs code for IR class
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册