Messages in this thread | | | Date | Sun, 27 Oct 2013 23:17:31 -0700 | From | Anton Vorontsov <> | Subject | Re: [PATCH 7/7] power_supply: Introduce PSE compliant algorithm |
| |
On Mon, Sep 23, 2013 at 11:34:05PM +0530, Jenny TC wrote: [...] > +#define BATTID_STR_LEN 8 > +#define BATT_TEMP_NR_RNG 6 > +/* Charging Profile */ > +struct psy_ps_pse_mod_prof { > + /* battery id */ > + char batt_id[BATTID_STR_LEN]; > + /* type of battery */ > + u16 battery_type; > + u16 capacity; > + u16 voltage_max; > + /* charge termination current */ > + u16 chrg_term_mA; > + /* Low battery level voltage */ > + u16 low_batt_mV; > + /* upper and lower temperature limits on discharging */ > + u8 disch_tmp_ul; > + u8 disch_tmp_ll; > + /* number of temperature monitoring ranges */ > + u16 temp_mon_ranges; > + struct psy_ps_temp_chg_table temp_mon_range[BATT_TEMP_NR_RNG]; > + /* Lowest temperature supported */ > + short int temp_low_lim; > +} __packed;
These all seem like properties of a battery. Why the battery is not registered with the power_supply framework?
What is PSE, by the way?
Anton
| |