charger-manager.h (56544d29c3a0e383c0d819fefc9570b2803db193) charger-manager.h (297d716f6260cc9421d971b124ca196b957ee458)
1/*
2 * Copyright (C) 2011 Samsung Electronics Co., Ltd.
3 * MyungJoo.Ham <myungjoo.ham@samsung.com>
4 *
5 * Charger Manager.
6 * This framework enables to control and multiple chargers and to
7 * monitor charging even in the context of suspend-to-RAM with
8 * an interface combining the chargers.

--- 228 unchanged lines hidden (view full) ---

237 bool charger_enabled;
238
239 unsigned long fullbatt_vchk_jiffies_at;
240 struct delayed_work fullbatt_vchk_work;
241
242 int emergency_stop;
243
244 char psy_name_buf[PSY_NAME_MAX + 1];
1/*
2 * Copyright (C) 2011 Samsung Electronics Co., Ltd.
3 * MyungJoo.Ham <myungjoo.ham@samsung.com>
4 *
5 * Charger Manager.
6 * This framework enables to control and multiple chargers and to
7 * monitor charging even in the context of suspend-to-RAM with
8 * an interface combining the chargers.

--- 228 unchanged lines hidden (view full) ---

237 bool charger_enabled;
238
239 unsigned long fullbatt_vchk_jiffies_at;
240 struct delayed_work fullbatt_vchk_work;
241
242 int emergency_stop;
243
244 char psy_name_buf[PSY_NAME_MAX + 1];
245 struct power_supply charger_psy;
245 struct power_supply_desc charger_psy_desc;
246 struct power_supply *charger_psy;
246
247 u64 charging_start_time;
248 u64 charging_end_time;
249};
250
251#ifdef CONFIG_CHARGER_MANAGER
252extern void cm_notify_event(struct power_supply *psy,
253 enum cm_event_types type, char *msg);
254#else
255static inline void cm_notify_event(struct power_supply *psy,
256 enum cm_event_types type, char *msg) { }
257#endif
258#endif /* _CHARGER_MANAGER_H */
247
248 u64 charging_start_time;
249 u64 charging_end_time;
250};
251
252#ifdef CONFIG_CHARGER_MANAGER
253extern void cm_notify_event(struct power_supply *psy,
254 enum cm_event_types type, char *msg);
255#else
256static inline void cm_notify_event(struct power_supply *psy,
257 enum cm_event_types type, char *msg) { }
258#endif
259#endif /* _CHARGER_MANAGER_H */