Re: [PATCH v2 7/7] iio: magnetometer: yas530: Add YAS537 variant

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

 



On Mon, Jun 13, 2022 at 5:20 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Mon, Jun 13, 2022 at 3:18 AM Jakob Hauser <jahau@xxxxxxxxxxxxxx> wrote:

Forgot to add that please try to split even more preparatory patches.
For example, you may convert existing code to stubs / switch-cases /
etc and in the last patch just add the new case or new function /
branch.

...

> > +       /*
> > +        * Raw temperature value t is number of counts. A product description

the number

> > +        * of YAS537 mentions a temperature resulution of 0.05 °C/count.
>
> resolution
>
> > +        * A readout of the t value at ca. 20 °C returns approx. 8120 counts.
> > +        *
> > +        * 8120 counts x 0.05 °C/count corresponds to a range of 406 °C.
> > +        * 0 counts would be at theoretical -386 °C.
> > +        *
> > +        * The formula used for YAS530/532 needs to be adapted to this
> > +        * theoretical starting temperature, again calculating with 1/10:s
> > +        * of degrees Celsius and finally multiplying by 100 to get milli
> > +        * degrees Celsius.
> > +        */

-- 
With Best Regards,
Andy Shevchenko




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux