Re: [PATCH v4 0/3] nvmem: migrate to const void * in reg_write

From: Link Mauve

Date: Mon Aug 10 2026 - 07:13:06 EST


On Mon, Aug 10, 2026 at 10:27:33AM +0300, Andy Shevchenko wrote:
> On Sun, Jul 26, 2026 at 03:17:18PM +0200, Link Mauve wrote:
> > This callback used to take a mutable void * for no reason, which causes
> > the compiler to be unaware that the val buffer should never be modified
> > by the callback.
> >
> > This was found while drafting the nvmem-provider Rust abstraction.
> >
> > Thanks to the guidance of Andy Shevchenko, this now introduces a new
> > callback and deprecates the existing one, with the goal of renaming the
> > new one into the old one once no user remains in the kernel.
>
> LGTM now, FWIW,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> But I think you also need to provide a road map of finishing this job (the best
> is to provide a continuation in some of yours public Git trees to point out).

Also note that I sent a v5 a few days ago but you reviewed v4, although
there are very few changes[1].

>
> --
> With Best Regards,
> Andy Shevchenko
>
>

[1] https://lore.kernel.org/lkml/20260804135940.2378737-1-linkmauve@xxxxxxxxxxxx/T/

--
Link Mauve