Re: [PATCH v2 2/2] iio: dac: dac8163: Add driver for DAC8163
Lukas <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <amZV_2_dsNZmp7Bb@berta-MS-7693> |
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