Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sunxigpio vs. LOCKDEBUG (PR 54664)



On Fri, 6 Aug 2021 12:06:38 -0300 (ADT)
Jared McNeill <jmcneill%invisible.ca@localhost> wrote:

> On Thu, 5 Aug 2021, Jared McNeill wrote:
> 
> > How about adding a struct fdtbus_regulator to struct 
> > fdtbus_regulator_controller? Then container_of() magic to derive the 
> > controller from the regulator handle in subsequent fdtbus_regulator_* calls, 
> > and we can avoid the allocation completely.
> 
> Attached patch implements this. Compile tested only -- let me know if it 
> works for you.

It works fine, thanks.



Home | Main Index | Thread Index | Old Index