aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power')
-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 5faf7ae9b81f..b52b57ca3084 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -182,13 +182,13 @@ static struct device_attribute power_supply_attrs[] = {
182static struct attribute * 182static struct attribute *
183__power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1]; 183__power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1];
184 184
185static mode_t power_supply_attr_is_visible(struct kobject *kobj, 185static umode_t power_supply_attr_is_visible(struct kobject *kobj,
186 struct attribute *attr, 186 struct attribute *attr,
187 int attrno) 187 int attrno)
188{ 188{
189 struct device *dev = container_of(kobj, struct device, kobj); 189 struct device *dev = container_of(kobj, struct device, kobj);
190 struct power_supply *psy = dev_get_drvdata(dev); 190 struct power_supply *psy = dev_get_drvdata(dev);
191 mode_t mode = S_IRUSR | S_IRGRP | S_IROTH; 191 umode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
192 int i; 192 int i;
193 193
194 if (attrno == POWER_SUPPLY_PROP_TYPE) 194 if (attrno == POWER_SUPPLY_PROP_TYPE)