summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2015-01-19 02:25:24 +0300
committerDarren Hart <dvhart@linux.intel.com>2015-01-23 20:10:22 +0300
commit03070e7c9d2dde754e49b189a195a7f5cc1ac7a1 (patch)
tree7bde22b78207794c0ef9a09208f83e9e67e46519 /drivers/platform
parente8549e2cf3dc3ab3222a71eac551eea9769ce86b (diff)
downloadlinux-03070e7c9d2dde754e49b189a195a7f5cc1ac7a1.tar.xz
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/asus-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index f71700e0d132..00f5e8217472 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -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: