Re: [RFC PATCH power-supply] power: supply: cpcap-charger: cpcap_charger_voltage_to_regval() can be static

From: Sebastian Reichel
Date: Mon Oct 21 2019 - 05:05:10 EST


Hi,

On Mon, Oct 21, 2019 at 06:20:52AM +0800, kbuild test robot wrote:
> Fixes: d4ee021c410f ("power: supply: cpcap-charger: Limit voltage to 4.2V for battery")
> Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
> ---

Thanks, I added a long description and queued it to power-supply's
-next branch. I did not fold it into the original patch, which is in
an immutable branch.

-- Sebastian

> cpcap-charger.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c
> index 88bbab6e62f07..b4b7f9dc6c4ea 100644
> --- a/drivers/power/supply/cpcap-charger.c
> +++ b/drivers/power/supply/cpcap-charger.c
> @@ -478,7 +478,7 @@ static void cpcap_charger_update_state(struct cpcap_charger_ddata *ddata,
> dev_dbg(ddata->dev, "state: %s\n", status);
> }
>
> -int cpcap_charger_voltage_to_regval(int voltage)
> +static int cpcap_charger_voltage_to_regval(int voltage)
> {
> int offset;
>

Attachment: signature.asc
Description: PGP signature