Re: [PATCH] iio: adc: palmas_gpadc: Fix leading space indentation
From: Jonathan Cameron
Date: Sat Mar 07 2026 - 12:17:23 EST
On Sat, 7 Mar 2026 17:02:14 +0400
Giorgi Tchankvetadze <giorgitchankvetadze1997@xxxxxxxxx> wrote:
> Fix lines starting with spaces instead of tabs to comply with the
> kernel coding style.
>
> No functional change.
>
> Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@xxxxxxxxx>
Huh. I wonder why I never got bot warnings on this?
Thanks for fixing it. I applied but changed the patch title a little
to remove the word fix as that tends to make people thing it needs a backport.
Applied to the testing branch of iio.git.
Jonathan
> ---
> drivers/iio/adc/palmas_gpadc.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c
> index 3f433064618e..f9995e28b10f 100644
> --- a/drivers/iio/adc/palmas_gpadc.c
> +++ b/drivers/iio/adc/palmas_gpadc.c
> @@ -521,16 +521,16 @@ static int palmas_gpadc_get_low_threshold_raw(struct palmas_gpadc *adc,
>
> val = (val * 1000) / adc->adc_info[adc_chan].gain;
>
> - if (adc->adc_info[adc_chan].is_uncalibrated) {
> + if (adc->adc_info[adc_chan].is_uncalibrated) {
> /* 2% worse */
> min_gain_error -= 20;
> min_offset_error = -36;
> - } else {
> + } else {
> val = (val * adc->adc_info[adc_chan].gain_error -
> adc->adc_info[adc_chan].offset) /
> 1000;
> min_offset_error = -2;
> - }
> + }
>
> return palmas_gpadc_threshold_with_tolerance(val,
> min_INL,