Re: [PATCH v3 2/5] w1_therm: adding sysfs entry to check device power
From: Akira shimahara
Date: Thu Apr 30 2020 - 06:34:09 EST
Hello,
Le mercredi 29 avril 2020 Ã 18:18 +0300, Evgeniy Polyakov a Ãcrit :
> Hi
>
>
>
> 29.04.2020, 16:47, "Greg KH" <greg@xxxxxxxxx>:
>
>
>
> > > +What: /sys/bus/w1/devices/.../w1_slave
> > > +Date: Apr 2020
> > > +Contact: Akira Shimahara <akira215corp@xxxxxxxxx>
> > > +Description:
> > > + (RW) return the temperature in 1/1000 degC.
> > > + *read*: return 2 lines with the hexa output data sent on the
> > > + bus, return the CRC check and temperature in 1/1000 degC
> > the w1_slave file returns a temperature???
> > And sysfs is 1 value-per-file, not multiple lines.
>
>
> It was 'content crc' previously, and probably a good idea would be to
> add just one file with 'content'
That's the purpose of the new sysfs entry 'temperature'. It only
content temperature. As already mentionned we have to keep the w1_slave
entry for compatibility purpose, all existing user application parse
this file.
I submitted the patch series yesterday night, splitting it in 9
patches.
Regards,
Akira Shimahara