media: pulse8-cec/rainshadow-cec: make adapter name unique
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Jul 2017 21:47:40 +0000 (18:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 18 Jul 2017 16:00:52 +0000 (13:00 -0300)
commit0e6fd95802e25b2428749703f76ea9d54ea743a3
treef56b78533c82b5e9a8601046d8a4febeca914294
parented10b4e0870b446c0e8e089b287be21ccdbcf5d6
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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/pulse8-cec/pulse8-cec.c
drivers/media/usb/rainshadow-cec/rainshadow-cec.c