On Tue, 2008-04-29 at 18:04 -0700, David Brownell wrote:So you're suggesting that the gpio-N links and control file live inside the gpiochip-X folder along with info about the chip to which they're attached? I don't mind this, sounds good. Certainly feels most sysfsish. Scripting would be pretty simple assuming there's one control file per chip and the gpio number written to said control file is relative to that chip's base. i.e. finding pcf9557:5 (assuming only one such device) would just be - find the gpiochip-X folder whose /label == pcf9557 - echo "export 5" > <that_folder>/control - read/write <that_folder>/gpio-5/{value,direction} If you've got multiple pca9557s then you're always going to have a hard time distinguishing them but you've been given all the information available to allow you to discover which is which. In fact more than enough; if the base is dynamically allocated then you don't know what to expect /start to be, you know what /ngpio will be and you never need to find the full gpio number so those 2 files are redundant yeah? --Ben. --
| David Miller | [GIT]: Networking |
| Andi Kleen | Please pull ACPI updates |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Fred . | Please add ZFS support (from GPL sources) |
git: | |
| Theodore Ts'o | Any objectsions to enhancing git-log to show tags/branch heads? |
| Alex R.M. Turner | Re: Problem with a push |
| Sebastian Schuberth | git on Cygwin: Not a valid object name HEAD |
| Dan Farina | backup or mirror a repository |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Jeff Ross | U320 Drive on U160 controller? |
| Richard Stallman | Real men don't attack straw men |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Desmond A. Kirkpatrick | ATI GUP bug with Linux 'tickler' |
| erc | HARDWARE COMPATIBILITY LIST |
| L.G. Ted Stern | Psfrag.sty in TeX, ext2fs |
