summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-08 15:05:28 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-10-08 15:05:28 -0700
commit2b01b1466bafc8f0690775004e823031e35cd6bf (patch)
tree7cb44b1c4d837346bb0e603dee6bda9f6e5a6ff1 /linux
parent635bede9405ca23e439decf2c1e5350a3cfeb86a (diff)
downloadmediapointer-dvb-s2-2b01b1466bafc8f0690775004e823031e35cd6bf.tar.gz
mediapointer-dvb-s2-2b01b1466bafc8f0690775004e823031e35cd6bf.tar.bz2
pvrusb: Update DEBUGIFC sysfs to kernel 2.6.13+
From: Trent Piepho <xyzzy@speakeasy.org> The prototypes for the show and store methods of a device_attribute changed in kernel 2.6.13, but the code in pvrusb2 was never updated. I guess the DEBUGIFC stuff isn't used much.... Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index f7c12b4c3..285002603 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -610,9 +610,12 @@ static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id)
}
#ifdef CONFIG_VIDEO_PVRUSB2_DEBUGIFC
-static ssize_t debuginfo_show(struct device *,char *);
-static ssize_t debugcmd_show(struct device *,char *);
-static ssize_t debugcmd_store(struct device *,const char *,size_t count);
+static ssize_t debuginfo_show(struct device *, struct device_attribute *,
+ char *);
+static ssize_t debugcmd_show(struct device *, struct device_attribute *,
+ char *);
+static ssize_t debugcmd_store(struct device *, struct device_attribute *,
+ const char *, size_t count);
static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp)
{
@@ -946,7 +949,8 @@ void pvr2_sysfs_class_destroy(struct pvr2_sysfs_class *clp)
#ifdef CONFIG_VIDEO_PVRUSB2_DEBUGIFC
-static ssize_t debuginfo_show(struct device *class_dev,char *buf)
+static ssize_t debuginfo_show(struct device *class_dev,
+ struct device_attribute *attr, char *buf)
{
struct pvr2_sysfs *sfp;
sfp = (struct pvr2_sysfs *)class_dev->driver_data;
@@ -956,7 +960,8 @@ static ssize_t debuginfo_show(struct device *class_dev,char *buf)
}
-static ssize_t debugcmd_show(struct device *class_dev,char *buf)
+static ssize_t debugcmd_show(struct device *class_dev,
+ struct device_attribute *attr, char *buf)
{
struct pvr2_sysfs *sfp;
sfp = (struct pvr2_sysfs *)class_dev->driver_data;
@@ -966,6 +971,7 @@ static ssize_t debugcmd_show(struct device *class_dev,char *buf)
static ssize_t debugcmd_store(struct device *class_dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
struct pvr2_sysfs *sfp;