diff options
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 62653f50a524..f817aab80813 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c | |||
@@ -76,7 +76,7 @@ static ssize_t power_supply_show_property(struct device *dev, | |||
76 | if (off == POWER_SUPPLY_PROP_TYPE) { | 76 | if (off == POWER_SUPPLY_PROP_TYPE) { |
77 | value.intval = psy->type; | 77 | value.intval = psy->type; |
78 | } else { | 78 | } else { |
79 | ret = psy->get_property(psy, off, &value); | 79 | ret = power_supply_get_property(psy, off, &value); |
80 | 80 | ||
81 | if (ret < 0) { | 81 | if (ret < 0) { |
82 | if (ret == -ENODATA) | 82 | if (ret == -ENODATA) |
@@ -125,7 +125,7 @@ static ssize_t power_supply_store_property(struct device *dev, | |||
125 | 125 | ||
126 | value.intval = long_val; | 126 | value.intval = long_val; |
127 | 127 | ||
128 | ret = psy->set_property(psy, off, &value); | 128 | ret = power_supply_set_property(psy, off, &value); |
129 | if (ret < 0) | 129 | if (ret < 0) |
130 | return ret; | 130 | return ret; |
131 | 131 | ||
@@ -223,7 +223,7 @@ static umode_t power_supply_attr_is_visible(struct kobject *kobj, | |||
223 | 223 | ||
224 | if (property == attrno) { | 224 | if (property == attrno) { |
225 | if (psy->property_is_writeable && | 225 | if (psy->property_is_writeable && |
226 | psy->property_is_writeable(psy, property) > 0) | 226 | power_supply_property_is_writeable(psy, property) > 0) |
227 | mode |= S_IWUSR; | 227 | mode |= S_IWUSR; |
228 | 228 | ||
229 | return mode; | 229 | return mode; |