Re: [PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-11-01 Thread Baolin Wang
Hi Quentin, On 1 November 2018 at 21:50, Quentin Schulz wrote: > Hi Baolin, > > On Thu, Nov 01, 2018 at 03:22:18PM +0800, Baolin Wang wrote: >> Hi Quentin, >> >> On 29 October 2018 at 22:48, Quentin Schulz >> wrote: > [...] >> > >> >> + return len; >> >> + } else if (len > POWER

Re: [PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-11-01 Thread Quentin Schulz
Hi Baolin, On Thu, Nov 01, 2018 at 03:22:18PM +0800, Baolin Wang wrote: > Hi Quentin, > > On 29 October 2018 at 22:48, Quentin Schulz > wrote: [...] > > > >> + return len; > >> + } else if (len > POWER_SUPPLY_OCV_TEMP_MAX) { > >> + dev_err(&psy->dev, "Too many temper

Re: [PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-11-01 Thread Baolin Wang
Hi Quentin, On 29 October 2018 at 22:48, Quentin Schulz wrote: > Hi all, > > Just chiming in, hopefully I got the message header fine as I don't have > the original of the mail. > >> >> We have introduced some battery properties to present the OCV table >> temperatures and OCV capacity table valu

[PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-22 Thread Baolin Wang
We have introduced some battery properties to present the OCV table temperatures and OCV capacity table values. Thus this patch add OCV temperature and OCV table for battery information, as well as providing some helper functions to use the OCV capacity table for users. Signed-off-by: Baolin Wang