Re: [PATCH] w1: Add 1-wire slave device driver for DS28E04-100

Markus Franke
2012-05-09T22:37:59Z

Dear Greg,

Am 10.05.2012 00:24, schrieb Greg KH:

>> the file "pio" is used for reading the current PIO state of the
>> DS28E04-100.
>
> Why is this a binary file? That seems like it should not be, as a
> binary sysfs file should be "pass-through" only.

Well, the data read/written through this file is actually directly
"passed" on to the device. There are two bits which reflect the current
state of the PIO pins of the DS28E04. However, I must admit that this
could also be implemented as regular sysfs attributes.

Best regards,
Markus Franke