Re: [PATCH v2 2/2] iio: dac: dac8163: Add driver for DAC8163
From: Lukas
Date: Sun Jul 26 2026 - 14:47:52 EST
On Sun, Jul 26, 2026 at 07:18:33PM +0100, Jonathan Cameron wrote:
>
> As this has come up, I'd favour just having two static const regmap_config structures
> and picking between them. Obviously I haven't checked but I'd guess that any
> overhead of extra text data for those is not that different to the extra code of the current
> approach. Generally if you can make this sort of thing data rather than code it
> is a net gain.
>
> Jonathan
I actually misspoke before. Since all dacxxx3 devices have different
default values (mid-scale varies for different resolutions), 4
different reg_defaults are needed to cover all the devices. I could
define 4 static const regmap_configs and pick between them or go with
Siratul Islams approach.
Best regards
Lukas