Re: [PATCH v5 06/11] iio: adc: hx711: introduce hx711_chip_info structure

Andy Shevchenko
2026-04-29T18:44:46Z

On Wed, Apr 29, 2026 at 11:15:39AM +0530, Piyush Patle wrote:
> Add a per-variant static configuration structure and populate the IIO
> device fields from it at probe time.
>
> This is a preparatory change for adding support for more HX711-compatible
> hardware variants without duplicating the probe-time setup.
>
> No functional change for existing HX711 users.

...

> static int hx711_probe(struct platform_device *pdev)
> {
> - struct device *dev = &pdev->dev;
> + const struct hx711_chip_info *chip_info;
> struct hx711_data *hx711_data;
> struct iio_dev *indio_dev;
> + struct device *dev = &pdev->dev;

Follow reversed xmas tree order, please. This should be two lines up.

> int ret;
> int i;

--
With Best Regards,
Andy Shevchenko