~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/video/pvrusb2/pvrusb2-sysfs.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
        }
325
325
        sfp->item_last = cip;
326
326
 
 
327
        sysfs_attr_init(&cip->attr_name.attr);
327
328
        cip->attr_name.attr.name = "name";
328
329
        cip->attr_name.attr.mode = S_IRUGO;
329
330
        cip->attr_name.show = show_name;
330
331
 
 
332
        sysfs_attr_init(&cip->attr_type.attr);
331
333
        cip->attr_type.attr.name = "type";
332
334
        cip->attr_type.attr.mode = S_IRUGO;
333
335
        cip->attr_type.show = show_type;
334
336
 
 
337
        sysfs_attr_init(&cip->attr_min.attr);
335
338
        cip->attr_min.attr.name = "min_val";
336
339
        cip->attr_min.attr.mode = S_IRUGO;
337
340
        cip->attr_min.show = show_min;
338
341
 
 
342
        sysfs_attr_init(&cip->attr_max.attr);
339
343
        cip->attr_max.attr.name = "max_val";
340
344
        cip->attr_max.attr.mode = S_IRUGO;
341
345
        cip->attr_max.show = show_max;
342
346
 
 
347
        sysfs_attr_init(&cip->attr_def.attr);
343
348
        cip->attr_def.attr.name = "def_val";
344
349
        cip->attr_def.attr.mode = S_IRUGO;
345
350
        cip->attr_def.show = show_def;
346
351
 
 
352
        sysfs_attr_init(&cip->attr_val.attr);
347
353
        cip->attr_val.attr.name = "cur_val";
348
354
        cip->attr_val.attr.mode = S_IRUGO;
349
355
 
 
356
        sysfs_attr_init(&cip->attr_custom.attr);
350
357
        cip->attr_custom.attr.name = "custom_val";
351
358
        cip->attr_custom.attr.mode = S_IRUGO;
352
359
 
 
360
        sysfs_attr_init(&cip->attr_enum.attr);
353
361
        cip->attr_enum.attr.name = "enum_val";
354
362
        cip->attr_enum.attr.mode = S_IRUGO;
355
363
        cip->attr_enum.show = show_enum;
356
364
 
 
365
        sysfs_attr_init(&cip->attr_bits.attr);
357
366
        cip->attr_bits.attr.name = "bit_val";
358
367
        cip->attr_bits.attr.mode = S_IRUGO;
359
368
        cip->attr_bits.show = show_bits;