lkml.org 
[lkml]   [2020]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2/5] w1_therm: adding sysfs entry to check device power
From
Date
Le jeudi 30 avril 2020 à 13:21 +0200, Greg KH a écrit :
> On Thu, Apr 30, 2020 at 12:34:03PM +0200, Akira shimahara wrote:
> > Hello,
> >
> > Le mercredi 29 avril 2020 à 18:18 +0300, Evgeniy Polyakov a écrit :
> > > Hi
> > >
> > >
> > >
> > > 29.04.2020, 16:47, "Greg KH" <greg@kroah.com>:
> > >
> > >
> > >
> > > > > +What: /sys/bus/w1/devices/.../w1_slave
> > > > > +Date: Apr 2020
> > > > > +Contact: Akira Shimahara <akira215corp@gmail.com>
> > > > > +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.
>
> That's fine, but the document you wrote here says the file is called
> "w1_slave", not "temperature" :)
>

Yes because it is the patch 2/5. At this stage, I just create the
sysfs-driver-w1_therm doc for the old w1_slave sysfs entry. The
temperature sysfs entry is introduce in v3 patch 3/5 (and v4 patch
7/9)and the sysfs-driver-w1_therm is updated accordingly.

Akira Shimahara

\
 
 \ /
  Last update: 2020-04-30 16:07    [W:0.038 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site