提交 03070e7c 编写于 作者: V Vivien Didelot 提交者: Darren Hart

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: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
上级 e8549e2c
...@@ -1616,7 +1616,7 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj, ...@@ -1616,7 +1616,7 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj,
else else
goto normal; goto normal;
return supported; return supported ? attr->mode : 0;
} }
normal: normal:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册