Re: [RFC PATCH 0/4] hwspinlock: refactor headers into public provider/consumer pair

Andy Shevchenko
2026-01-26T10:21:08Z

On Mon, Jan 26, 2026 at 11:13:59AM +0100, Wolfram Sang wrote:
>
> > I don't like the idea of sharing internal stuff. Why would we need to have
> > a struct hwspinlock to be visible?
>
> Providers need it, especially the 'priv' member. Consumers won't see it.

But can't we make it opaque?

We may have getters and setters for the priv member...

--
With Best Regards,
Andy Shevchenko