Re: [PATCH 3/3] iio: cdc: add Texas Instruments FDC1004 driver

From: Andy Shevchenko

Date: Sat Oct 24 2026 - 06:19:40 EST


On Sat, Oct 24, 2026 at 12:13:08AM +0000, Victor Chernyakin wrote:

> > I'd look at using regmap even though you only have a single bus. It provides
> > a rich set of helpers and the caching functionality that will save a bunch
> > of bus traffic.
>
> Ah... is that a strong preference in new drivers? That would be quite
> a bit of rewrite work...

Yes, usually drivers start being looked cleaner. On top you got a few benefits
of regmap for free (cache, debugfs, tracing, maybe even more).

--
With Best Regards,
Andy Shevchenko