mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
asus-laptop: Fix is_visible return value
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>
This commit is contained in:
parent
e8549e2cf3
commit
03070e7c9d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue