summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-12-27 23:11:22 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 13:34:23 -0200
commitfd5a75fe00ec13311289928c2cb17d8676f8db45 (patch)
tree478dcf0445fc17e64df4036e391106522b54bdea /drivers/media/video/pvrusb2/pvrusb2-sysfs.c
parentae2b9e25fdfb63efed3659b19c5cc8778fd981ba (diff)
downloadblackbird-op-linux-fd5a75fe00ec13311289928c2cb17d8676f8db45.tar.gz
blackbird-op-linux-fd5a75fe00ec13311289928c2cb17d8676f8db45.zip
V4L/DVB (5040): Pvrusb2: Use enumeration for minor number get / store code
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-sysfs.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-sysfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index d583c9777b6d..0f8021e2dd06 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -732,7 +732,8 @@ static ssize_t v4l_minor_number_show(struct class_device *class_dev,char *buf)
sfp = (struct pvr2_sysfs *)class_dev->class_data;
if (!sfp) return -EINVAL;
return scnprintf(buf,PAGE_SIZE,"%d\n",
- pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw,0));
+ pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw,
+ pvr2_config_mpeg));
}
@@ -743,7 +744,8 @@ static ssize_t v4l_radio_minor_number_show(struct class_device *class_dev,
sfp = (struct pvr2_sysfs *)class_dev->class_data;
if (!sfp) return -EINVAL;
return scnprintf(buf,PAGE_SIZE,"%d\n",
- pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw,2));
+ pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw,
+ pvr2_config_radio));
}
OpenPOWER on IntegriCloud