aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-04-22 13:45:38 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:47 -0400
commitbedbbf8be2f28c9f8a8cf1e2ead4fda8b5f47103 (patch)
tree589a16f46a3ea82732a5ec59fbd1052558283f99 /drivers/media/video/pvrusb2/pvrusb2-sysfs.c
parentbeb0ecd7f02f1a2da174b450d096e00530b3e8e8 (diff)
V4L/DVB (7301): pvrusb2: Implement addition sysfs tracing
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index 07f4eae18433..17616f79f34e 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -287,6 +287,8 @@ static ssize_t store_val_norm(int id,struct device *class_dev,
287 struct pvr2_sysfs *sfp; 287 struct pvr2_sysfs *sfp;
288 int ret; 288 int ret;
289 sfp = (struct pvr2_sysfs *)class_dev->driver_data; 289 sfp = (struct pvr2_sysfs *)class_dev->driver_data;
290 pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"",
291 sfp,id,count,buf);
290 ret = store_val_any(id,0,sfp,buf,count); 292 ret = store_val_any(id,0,sfp,buf,count);
291 if (!ret) ret = count; 293 if (!ret) ret = count;
292 return ret; 294 return ret;
@@ -298,6 +300,8 @@ static ssize_t store_val_custom(int id,struct device *class_dev,
298 struct pvr2_sysfs *sfp; 300 struct pvr2_sysfs *sfp;
299 int ret; 301 int ret;
300 sfp = (struct pvr2_sysfs *)class_dev->driver_data; 302 sfp = (struct pvr2_sysfs *)class_dev->driver_data;
303 pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"",
304 sfp,id,count,buf);
301 ret = store_val_any(id,1,sfp,buf,count); 305 ret = store_val_any(id,1,sfp,buf,count);
302 if (!ret) ret = count; 306 if (!ret) ret = count;
303 return ret; 307 return ret;