Hi, On Mon, Mar 09, 2015 at 01:53:58PM +0900, Beomho Seo wrote: > >> remove the special handling of POWER_SUPPLY_PROP_CURRENT_MAX in > >> rt5033_get_charger_current() and do it like this: > >> > >> case POWER_SUPPLY_PROP_CURRENT_NOW: > >> val->intval = rt5033_get_charger_current(charger); > >> break; > >> case POWER_SUPPLY_PROP_CURRENT_MAX: > >> val->intval = RT5033_CHG_MAX_CURRENT; > >> break; > >> > > > > OK. I will change comply with your comment. > > > > RT5033_CHG_MAX_CURRENT is register value(hex). > So It is better: > > case POWER_SUPPLY_PROP_CURRENT_MAX: > val->intval = RT5033_CHARGER_FAST_CURRENT_MAX; > > And then I will fix rt5033_get_charger_current function more readable. Right, I copied the wrong value. > [...] -- Sebastian
Attachment:
signature.asc
Description: Digital signature