aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/power_supply_sysfs.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/power/power_supply_sysfs.c
parent9104e427f3e21ddb380ddc39752624365b5bffea (diff)
switch ->is_visible() to returning umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r--drivers/power/power_supply_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index e15d4c9d3988..e95cd657dac2 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -176,13 +176,13 @@ static struct device_attribute power_supply_attrs[] = {
176static struct attribute * 176static struct attribute *
177__power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1]; 177__power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1];
178 178
179static mode_t power_supply_attr_is_visible(struct kobject *kobj, 179static umode_t power_supply_attr_is_visible(struct kobject *kobj,
180 struct attribute *attr, 180 struct attribute *attr,
181 int attrno) 181 int attrno)
182{ 182{
183 struct device *dev = container_of(kobj, struct device, kobj); 183 struct device *dev = container_of(kobj, struct device, kobj);
184 struct power_supply *psy = dev_get_drvdata(dev); 184 struct power_supply *psy = dev_get_drvdata(dev);
185 mode_t mode = S_IRUSR | S_IRGRP | S_IROTH; 185 umode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
186 int i; 186 int i;
187 187
188 if (attrno == POWER_SUPPLY_PROP_TYPE) 188 if (attrno == POWER_SUPPLY_PROP_TYPE)