Skip to content

Commit

Permalink
asus-laptop: Fix is_visible return value
Browse files Browse the repository at this point in the history
With a Lucid platform, asus_sysfs_is_visible() returned a boolean for
ls_switch and ls_level attributes.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
  • Loading branch information
Vivien Didelot authored and Darren Hart committed Jan 23, 2015
1 parent e8549e2 commit 03070e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj,
else
goto normal;

return supported;
return supported ? attr->mode : 0;
}

normal:
Expand Down

0 comments on commit 03070e7

Please sign in to comment.