]> git.openfabrics.org - ~emulex/infiniband.git/commit
V4L/DVB (10237): pvrusb2: Generate a device-unique identifier
authorMike Isely <isely@pobox.com>
Wed, 14 Jan 2009 07:22:56 +0000 (04:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:21 +0000 (12:42 -0300)
commit13a887971b6c97751fce62ab803ee93a42a23c5d
tree53923a8e8a2fba36c519788fbade0322bfbe2b3d
parentd166b02ea6b03766f6fd867fb1fef378a57683e5
V4L/DVB (10237): pvrusb2: Generate a device-unique identifier

Implement a new internal function to create a string device
identifier.  This ID stays with the specific device, making it useful
to user space to identify specific devices.  We use the serial number
if available; otherwise we give up and just spit out a unit/instance ID.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
drivers/media/video/pvrusb2/pvrusb2-hdw.c
drivers/media/video/pvrusb2/pvrusb2-hdw.h