diff options
Diffstat (limited to 'kernel/drivers/power/power_supply_sysfs.c')
-rw-r--r-- | kernel/drivers/power/power_supply_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/power/power_supply_sysfs.c b/kernel/drivers/power/power_supply_sysfs.c index 9134e3d2d..ed2d7fd0c 100644 --- a/kernel/drivers/power/power_supply_sysfs.c +++ b/kernel/drivers/power/power_supply_sysfs.c @@ -125,7 +125,7 @@ static ssize_t power_supply_store_property(struct device *dev, value.intval = long_val; - ret = psy->desc->set_property(psy, off, &value); + ret = power_supply_set_property(psy, off, &value); if (ret < 0) return ret; @@ -223,7 +223,7 @@ static umode_t power_supply_attr_is_visible(struct kobject *kobj, if (property == attrno) { if (psy->desc->property_is_writeable && - power_supply_property_is_writeable(psy, property) > 0) + psy->desc->property_is_writeable(psy, property) > 0) mode |= S_IWUSR; return mode; |