iio: adc: ad7173: don't make copy of ad_sigma_delta_info struct
authorDavid Lechner <dlechner@baylibre.com>
Mon, 13 Jan 2025 21:43:19 +0000 (15:43 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Feb 2025 19:15:37 +0000 (19:15 +0000)
commit4310e15b314009e83241610f993eb466fede77df
tree1b08a65ac3f66a354fe3cdbfaebdb4077ff05a7e
parent470cb490d1b75cf25f3139dcf0226967bcc6e217
iio: adc: ad7173: don't make copy of ad_sigma_delta_info struct

Use two separate static const struct ad_sigma_delta_info instances
instead of making a copy for each driver instance.

Typically in the IIO subsystem, we use multiple static const instances
of the same struct when there are different variants of the same family
of devices as opposed to making a copy for each driver instance and
modifying it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250113-iio-adc-ad7313-fix-non-const-info-struct-v4-2-b63be3ecac4a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c