lkml.org 
[lkml]   [2008]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch/rfc 2.6.25-git] gpio: sysfs interface
Date
On Tuesday 29 April 2008, Ben Nizette wrote:
> I guess one last option (which is made hard by chip label non-uniqueness
> but I'll throw out anyway) would be
>
> /sys/class/gpio
>         /chipa
>                 /gpio-n
>                         /value
>                         /direction
>                 /control
>         /chipb
>                 :
>                 :
>

Or maybe:

/sys/class/gpio
/gpiochip-X <-- range X..(X+ngpio)
/device <-- symlink, if it's known
/ngpio
/label
/start <-- maybe; start == X

with the gpio-N links probably going where you showed. That'd be
best in terms of Purity Of Essence.

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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