Re: [PATCH] power: supply: ab8500_charger: Fix inconsistent IS_ERR and PTR_ERR

From: Gustavo A. R. Silva
Date: Mon Oct 28 2019 - 16:38:09 EST


Hey Sebastian,

On 10/27/19 16:30, Sebastian Reichel wrote:
> Hi,
>
> On Mon, Oct 21, 2019 at 12:49:37PM -0500, Gustavo A. R. Silva wrote:
>> Fix inconsistent IS_ERR and PTR_ERR in ab8500_charger_probe().
>>
>> The proper pointer to be passed as argument is di->adc_main_charger_c
>>
>> This bug was detected with the help of Coccinelle.
>>
>> Fixes: 97ab78bac5d0 ("power: supply: ab8500_charger: Convert to IIO ADC")
>> Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
>> ---
>
> Thanks, queued.
>

Awesome.
Thank you!

--
Gustavo