Re: [PATCH v3 1/4] staging: iio: adc: ad7816: redefine mode constants to start from 0
From: Andy Shevchenko
Date: Tue Mar 31 2026 - 02:31:17 EST
On Tue, Mar 31, 2026 at 12:17:07AM +0600, Md. Mahmudul Hasan Mabud wrote:
> Redefine AD7816_FULL and AD7816_PD constants to start from 0 instead
> of 1. This change is necessary to use these constants as direct
> indices for the mode string array and to align with standard
> indexing in modern sysfs helpers.
...
> -#define AD7816_FULL 0x1
> -#define AD7816_PD 0x2
> +#define AD7816_FULL 0
> +#define AD7816_PD 1
+ blank line here.
> #define AD7816_CS_MASK 0x7
> #define AD7816_CS_MAX 0x4
--
With Best Regards,
Andy Shevchenko