Re: [PATCH v2 2/2] iio: dac: dac8163: Add driver for DAC8163
Siratul Islam <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On July 27, 2026 12:46:23 AM GMT+06:00, Lukas <[email protected]> wrote: >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 If you need 4 of them then it's a bit too much I think. I don't know if it would be acceptable duplication at that point. -- Best regards, Sirat