Commit 0e6fd958 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: pulse8-cec/rainshadow-cec: make adapter name unique

The CEC adapter name used by the pulse8-cec and rainshadow-cec USB device drivers
was a fixed string, but it should be unique if you connect multiple of these devices
to the same computer.

Use dev_name(&serio->dev) instead, which make it unique again.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ed10b4e0
...@@ -656,7 +656,7 @@ static int pulse8_connect(struct serio *serio, struct serio_driver *drv) ...@@ -656,7 +656,7 @@ static int pulse8_connect(struct serio *serio, struct serio_driver *drv)
pulse8->serio = serio; pulse8->serio = serio;
pulse8->adap = cec_allocate_adapter(&pulse8_cec_adap_ops, pulse8, pulse8->adap = cec_allocate_adapter(&pulse8_cec_adap_ops, pulse8,
"HDMI CEC", caps, 1); dev_name(&serio->dev), caps, 1);
err = PTR_ERR_OR_ZERO(pulse8->adap); err = PTR_ERR_OR_ZERO(pulse8->adap);
if (err < 0) if (err < 0)
goto free_device; goto free_device;
......
...@@ -323,7 +323,7 @@ static int rain_connect(struct serio *serio, struct serio_driver *drv) ...@@ -323,7 +323,7 @@ static int rain_connect(struct serio *serio, struct serio_driver *drv)
rain->serio = serio; rain->serio = serio;
rain->adap = cec_allocate_adapter(&rain_cec_adap_ops, rain, rain->adap = cec_allocate_adapter(&rain_cec_adap_ops, rain,
"HDMI CEC", caps, 1); dev_name(&serio->dev), caps, 1);
err = PTR_ERR_OR_ZERO(rain->adap); err = PTR_ERR_OR_ZERO(rain->adap);
if (err < 0) if (err < 0)
goto free_device; goto free_device;
......
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