On Mon, Jul 11, 2022 at 9:46 PM Paul Cercueil <paul@xxxxxxxxxxxxxxx> wrote: > > When the IIO channel has a scale_available attribute, we want the values > contained to be properly converted the same way the scale value is. Beside that not very readable `foo <<= x == y;` line, I think this will look much better if we first convert the rescale driver to use struct s32_fract (or whatever is suitable). -- With Best Regards, Andy Shevchenko