power_supply_property_is_writeable
extern int power_supply_property_is_writeable(struct power_supply *psy,
if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 &&
if (power_supply_property_is_writeable(psy, attrno) > 0)