aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-11-25 23:58:20 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:02 -0500
commit78a47101ac0ac75019a740d62c70ccb16ff7c7c1 (patch)
treea329cea6e4ebb8145d29e076075bad9595af5318 /drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentf66fbd71f24f5f0264bb8526cfb91ea5c6219f50 (diff)
V4L/DVB (6695): pvrusb2: Implement functions to pass descriptive hardware info
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index c08162cc20ae..4ffaf3faff5b 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2474,6 +2474,18 @@ const char *pvr2_hdw_get_driver_name(struct pvr2_hdw *hdw)
2474} 2474}
2475 2475
2476 2476
2477const char *pvr2_hdw_get_desc(struct pvr2_hdw *hdw)
2478{
2479 return hdw->hdw_desc->description;
2480}
2481
2482
2483const char *pvr2_hdw_get_type(struct pvr2_hdw *hdw)
2484{
2485 return hdw->hdw_desc->shortname;
2486}
2487
2488
2477int pvr2_hdw_is_hsm(struct pvr2_hdw *hdw) 2489int pvr2_hdw_is_hsm(struct pvr2_hdw *hdw)
2478{ 2490{
2479 int result; 2491 int result;