diff options
author | Mike Isely <isely@pobox.com> | 2009-01-14 02:22:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:21 -0400 |
commit | 13a887971b6c97751fce62ab803ee93a42a23c5d (patch) | |
tree | 53923a8e8a2fba36c519788fbade0322bfbe2b3d /drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | d166b02ea6b03766f6fd867fb1fef378a57683e5 (diff) |
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>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h index 1b4fec337c6b..a40f84588cd6 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |||
@@ -132,6 +132,9 @@ unsigned long pvr2_hdw_get_sn(struct pvr2_hdw *); | |||
132 | /* Retrieve bus location info of device */ | 132 | /* Retrieve bus location info of device */ |
133 | const char *pvr2_hdw_get_bus_info(struct pvr2_hdw *); | 133 | const char *pvr2_hdw_get_bus_info(struct pvr2_hdw *); |
134 | 134 | ||
135 | /* Retrieve per-instance string identifier for this specific device */ | ||
136 | const char *pvr2_hdw_get_device_identifier(struct pvr2_hdw *); | ||
137 | |||
135 | /* Called when hardware has been unplugged */ | 138 | /* Called when hardware has been unplugged */ |
136 | void pvr2_hdw_disconnect(struct pvr2_hdw *); | 139 | void pvr2_hdw_disconnect(struct pvr2_hdw *); |
137 | 140 | ||