|
@@ -206,6 +206,11 @@ struct power_supply_desc {
|
|
|
int (*set_property)(struct power_supply *psy,
|
|
|
enum power_supply_property psp,
|
|
|
const union power_supply_propval *val);
|
|
|
+ /*
|
|
|
+ * property_is_writeable() will be called during registration
|
|
|
+ * of power supply. If this happens during device probe then it must
|
|
|
+ * not access internal data of device (because probe did not end).
|
|
|
+ */
|
|
|
int (*property_is_writeable)(struct power_supply *psy,
|
|
|
enum power_supply_property psp);
|
|
|
void (*external_power_changed)(struct power_supply *psy);
|