Skip to content

Commit

Permalink
use symbolic permissions
Browse files Browse the repository at this point in the history
You know, in case these, like, ever change.  Ever.
  • Loading branch information
djpohly committed Aug 26, 2014
1 parent c4936ac commit 2175e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/piuio.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/sysfs.h>
#include <linux/errno.h>
#include <linux/bitops.h>
#include <linux/leds.h>
Expand Down Expand Up @@ -400,7 +402,7 @@ static int piuio_leds_init(struct piuio *piu)
for (ag = piu->led[i].dev.dev->class->dev_groups; *ag; ag++) {
for (attr = (*ag)->attrs; *attr; attr++) {
ret = sysfs_chmod_file(&piu->led[i].dev.dev->kobj,
*attr, 0666);
*attr, S_IRUGO | S_IWUGO);
if (ret) {
led_classdev_unregister(&piu->led[i].dev);
goto out_unregister;
Expand Down

0 comments on commit 2175e06

Please sign in to comment.