summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-11-25 22:58:20 -0600
committerMike Isely <isely@pobox.com>2007-11-25 22:58:20 -0600
commita8ebb7bc1537421088db546cc9dd2accc4099bae (patch)
tree58a56184ddcc65612dc0c098fe19c70926882247 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentaad9eaebf68a27da1d3d889b885379cd7e27cba0 (diff)
downloadmediapointer-dvb-s2-a8ebb7bc1537421088db546cc9dd2accc4099bae.tar.gz
mediapointer-dvb-s2-a8ebb7bc1537421088db546cc9dd2accc4099bae.tar.bz2
pvrusb2: Implement functions to pass descriptive hardware info
From: Mike Isely <isely@pobox.com> Implement additional pvrusb2 device info table entries for a device identifier and a device description. Export this information via the driver's internal API. Make this information available via the sysfs driver interface. Also propagate this information into the v4l2 capability structure. An app can now retrieve and report a descriptive string about the particular type of hardware device it is operating. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index da9bbf4fa..10365be4a 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2493,6 +2493,18 @@ const char *pvr2_hdw_get_driver_name(struct pvr2_hdw *hdw)
}
+const char *pvr2_hdw_get_desc(struct pvr2_hdw *hdw)
+{
+ return hdw->hdw_desc->description;
+}
+
+
+const char *pvr2_hdw_get_type(struct pvr2_hdw *hdw)
+{
+ return hdw->hdw_desc->shortname;
+}
+
+
int pvr2_hdw_is_hsm(struct pvr2_hdw *hdw)
{
int result;