diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-sysfs.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c index 281806b2df62..6ef1335b2858 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c +++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c | |||
@@ -324,36 +324,45 @@ static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) | |||
324 | } | 324 | } |
325 | sfp->item_last = cip; | 325 | sfp->item_last = cip; |
326 | 326 | ||
327 | sysfs_attr_init(&cip->attr_name.attr); | ||
327 | cip->attr_name.attr.name = "name"; | 328 | cip->attr_name.attr.name = "name"; |
328 | cip->attr_name.attr.mode = S_IRUGO; | 329 | cip->attr_name.attr.mode = S_IRUGO; |
329 | cip->attr_name.show = show_name; | 330 | cip->attr_name.show = show_name; |
330 | 331 | ||
332 | sysfs_attr_init(&cip->attr_type.attr); | ||
331 | cip->attr_type.attr.name = "type"; | 333 | cip->attr_type.attr.name = "type"; |
332 | cip->attr_type.attr.mode = S_IRUGO; | 334 | cip->attr_type.attr.mode = S_IRUGO; |
333 | cip->attr_type.show = show_type; | 335 | cip->attr_type.show = show_type; |
334 | 336 | ||
337 | sysfs_attr_init(&cip->attr_min.attr); | ||
335 | cip->attr_min.attr.name = "min_val"; | 338 | cip->attr_min.attr.name = "min_val"; |
336 | cip->attr_min.attr.mode = S_IRUGO; | 339 | cip->attr_min.attr.mode = S_IRUGO; |
337 | cip->attr_min.show = show_min; | 340 | cip->attr_min.show = show_min; |
338 | 341 | ||
342 | sysfs_attr_init(&cip->attr_max.attr); | ||
339 | cip->attr_max.attr.name = "max_val"; | 343 | cip->attr_max.attr.name = "max_val"; |
340 | cip->attr_max.attr.mode = S_IRUGO; | 344 | cip->attr_max.attr.mode = S_IRUGO; |
341 | cip->attr_max.show = show_max; | 345 | cip->attr_max.show = show_max; |
342 | 346 | ||
347 | sysfs_attr_init(&cip->attr_def.attr); | ||
343 | cip->attr_def.attr.name = "def_val"; | 348 | cip->attr_def.attr.name = "def_val"; |
344 | cip->attr_def.attr.mode = S_IRUGO; | 349 | cip->attr_def.attr.mode = S_IRUGO; |
345 | cip->attr_def.show = show_def; | 350 | cip->attr_def.show = show_def; |
346 | 351 | ||
352 | sysfs_attr_init(&cip->attr_val.attr); | ||
347 | cip->attr_val.attr.name = "cur_val"; | 353 | cip->attr_val.attr.name = "cur_val"; |
348 | cip->attr_val.attr.mode = S_IRUGO; | 354 | cip->attr_val.attr.mode = S_IRUGO; |
349 | 355 | ||
356 | sysfs_attr_init(&cip->attr_custom.attr); | ||
350 | cip->attr_custom.attr.name = "custom_val"; | 357 | cip->attr_custom.attr.name = "custom_val"; |
351 | cip->attr_custom.attr.mode = S_IRUGO; | 358 | cip->attr_custom.attr.mode = S_IRUGO; |
352 | 359 | ||
360 | sysfs_attr_init(&cip->attr_enum.attr); | ||
353 | cip->attr_enum.attr.name = "enum_val"; | 361 | cip->attr_enum.attr.name = "enum_val"; |
354 | cip->attr_enum.attr.mode = S_IRUGO; | 362 | cip->attr_enum.attr.mode = S_IRUGO; |
355 | cip->attr_enum.show = show_enum; | 363 | cip->attr_enum.show = show_enum; |
356 | 364 | ||
365 | sysfs_attr_init(&cip->attr_bits.attr); | ||
357 | cip->attr_bits.attr.name = "bit_val"; | 366 | cip->attr_bits.attr.name = "bit_val"; |
358 | cip->attr_bits.attr.mode = S_IRUGO; | 367 | cip->attr_bits.attr.mode = S_IRUGO; |
359 | cip->attr_bits.show = show_bits; | 368 | cip->attr_bits.show = show_bits; |