Re: [PATCH v2 4/5] iio: adc: ad4130: introduce chip info for future multidevice support
From: Andy Shevchenko
Date: Mon Mar 16 2026 - 11:24:14 EST
On Mon, Mar 16, 2026 at 08:45:36AM -0300, Jonathan Santos wrote:
> Introduce a chip_info structure to abstract device-specific parameters
> and prepare the driver for supporting multiple AD4130 family variants.
...
> +struct ad4130_chip_info {
> + const char *name;
> + unsigned int max_analog_pins;
> + const struct iio_info *info;
> + const unsigned int *reg_size;
> + const unsigned int reg_size_length;
On (some) 64-bit architectures it might have unneeded gaps. Does `pahole` agree
with this layout?
> +};
--
With Best Regards,
Andy Shevchenko