Re: [PATCH 1/8] nvmem: core: make reg_write() take a const void *

Andy Shevchenko <[email protected]>
Newsgroups dev.linux.lists.mfd,dev.linux.lists.imx,dev.linux.lists.linux-sunxi,org.infradead.lists.linux-amlogic,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-gpio,org.kernel.vger.linux-i2c,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel,org.kernel.vger.linux-media,org.kernel.vger.linux-omap,org.kernel.vger.linux-rtc,org.kernel.vger.rust-for-linux
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Wed, Jul 15, 2026 at 07:52:17PM +0200, Link Mauve wrote:
> This callback used to take a mutable void * for no reason, this was
> found while drafting the Rust abstraction.

I don't understand how it was compiled. const void * != void * in C and can't
be implicitly covered, if I am not mistaken. So, this patch heavily should
break the build. What did I miss?

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.