Re: [PATCH v5 05/11] iio: adc: hx711: move scale computation to per-device storage

Andy Shevchenko
2026-04-29T18:41:34Z

On Wed, Apr 29, 2026 at 11:15:38AM +0530, Piyush Patle wrote:
> The gain-to-scale table is global today, so probe-time scale updates for
> one device overwrite the values used by any earlier device instance.
>
> Fix this by making the gain table const and storing the computed scale
> values per device in hx711_data.
>
> No functional change for single-sensor configurations.

...

> @@ -574,4 +575,3 @@ MODULE_AUTHOR("Andreas Klinger <ak@it-klinger.de>");
> MODULE_DESCRIPTION("HX711 bitbanging driver - ADC for weight cells");
> MODULE_LICENSE("GPL");
> MODULE_ALIAS("platform:hx711-gpio");
> -

Stray change.

--
With Best Regards,
Andy Shevchenko