Morning Mark, On Fri, 2020-02-14 at 14:32 +0200, Matti Vaittinen wrote: > On Fri, 2020-02-14 at 11:47 +0000, Mark Brown wrote: > > On Wed, Feb 12, 2020 at 06:56:37AM +0000, Vaittinen, Matti wrote: > > > On Tue, 2020-02-11 at 19:06 +0000, Mark Brown wrote: > > > > > > > > It is a bit but I think that's solvable with some refactoring in > > place > > (eg, pushing things into a smaller struct embedded in the main > > regulator > > one and then moving them out). I might look at it myself if nobody > > else > > gets to it first... > > I need something like this in order to convert BD99954 current and > voltage values to register values. I will happily use what-ever you > do > pull together - but if you don't feel like doing it now I might look > at > the regulator part while I am working with BD99954 anyways. Please > just > let me know if you want me to see if I can pull the range stuff out > of > regulator area. Just to avoid duplicate work - I started working with this. Please let me know if you are already working on it so I am not doing this in vain. By the way - do you have some nice test cases for regulators hidden somewhere? If so, do you think you could share them? I sure have some for BD718x7 but they are somewhat clumsy and require special HW. (I've never liked unit-tests but I must admit there are some specific cases where they would be pretty usable). Best Regards, Matti Vaittinen