aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/asus-wmi.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-23 23:11:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:55 -0500
commit587a1f1659e8b330b8738ef4901832a2b63f0bed (patch)
treeb785c3f44ddba6ee036e02268502cdc961f55ea0 /drivers/platform/x86/asus-wmi.c
parent9104e427f3e21ddb380ddc39752624365b5bffea (diff)
switch ->is_visible() to returning umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r--drivers/platform/x86/asus-wmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index d1049ee3c9e8..72d731c21d45 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -992,7 +992,7 @@ static struct attribute *hwmon_attributes[] = {
992 NULL 992 NULL
993}; 993};
994 994
995static mode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj, 995static umode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj,
996 struct attribute *attr, int idx) 996 struct attribute *attr, int idx)
997{ 997{
998 struct device *dev = container_of(kobj, struct device, kobj); 998 struct device *dev = container_of(kobj, struct device, kobj);
@@ -1357,7 +1357,7 @@ static struct attribute *platform_attributes[] = {
1357 NULL 1357 NULL
1358}; 1358};
1359 1359
1360static mode_t asus_sysfs_is_visible(struct kobject *kobj, 1360static umode_t asus_sysfs_is_visible(struct kobject *kobj,
1361 struct attribute *attr, int idx) 1361 struct attribute *attr, int idx)
1362{ 1362{
1363 struct device *dev = container_of(kobj, struct device, kobj); 1363 struct device *dev = container_of(kobj, struct device, kobj);