Hello Guenter, > -----Ursprüngliche Nachricht----- > Von: Guenter Roeck <groeck7@xxxxxxxxx> Im Auftrag von Guenter Roeck > Gesendet: Donnerstag, 14. März 2019 17:53 > An: Grönke, Christian <C.Groenke@xxxxxxxxxx> > Cc: linux-hwmon@xxxxxxxxxxxxxxx > Betreff: Re: PMBus driver for FSP/3Y Power device with non-standard VOUT > values (LINEAR11 vs LINEAR16) > > Hi Christian, > On Thu, Mar 14, 2019 at 04:08:32PM +0000, Grönke, Christian wrote: > > > > The framework code seemed to work fine. I used your code for the > conversion: > > linear11 -> 'scaled integer' -> ieee754 It provided a way to test > > the code and was easy for me as my tries to do some other bit magic > > weren't successful. That means I partly tested the code from > > pmbus_data2reg_ieee754 as my read_word function uses this for the > > conversion. Of course not the module local function... > > > > Wondering ... I would have thought that it should be possible to > implement a simplified linear11 <--> ieee754 conversion, without > converting to a scaled integer first. Have you tried that ? There might be a more efficient and elegant way. I toyed around with the conversion for a moment but didn't figure out a working way quickly. Right now I need to integrate the driver and get it working in the System so that the depended application could can be worked on. I might revisit the current conversion code after that and try to find a "better" way. Kind regards Christian