|
@@ -144,6 +144,7 @@ struct power_supply {
|
|
enum power_supply_property psp,
|
|
enum power_supply_property psp,
|
|
union power_supply_propval *val);
|
|
union power_supply_propval *val);
|
|
void (*external_power_changed)(struct power_supply *psy);
|
|
void (*external_power_changed)(struct power_supply *psy);
|
|
|
|
+ void (*set_charged)(struct power_supply *psy);
|
|
|
|
|
|
/* For APM emulation, think legacy userspace. */
|
|
/* For APM emulation, think legacy userspace. */
|
|
int use_for_apm;
|
|
int use_for_apm;
|
|
@@ -183,8 +184,10 @@ struct power_supply_info {
|
|
int use_for_apm;
|
|
int use_for_apm;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+extern struct power_supply *power_supply_get_by_name(char *name);
|
|
extern void power_supply_changed(struct power_supply *psy);
|
|
extern void power_supply_changed(struct power_supply *psy);
|
|
extern int power_supply_am_i_supplied(struct power_supply *psy);
|
|
extern int power_supply_am_i_supplied(struct power_supply *psy);
|
|
|
|
+extern int power_supply_set_battery_charged(struct power_supply *psy);
|
|
|
|
|
|
#if defined(CONFIG_POWER_SUPPLY) || defined(CONFIG_POWER_SUPPLY_MODULE)
|
|
#if defined(CONFIG_POWER_SUPPLY) || defined(CONFIG_POWER_SUPPLY_MODULE)
|
|
extern int power_supply_is_system_supplied(void);
|
|
extern int power_supply_is_system_supplied(void);
|