Messages in this thread | | | Date | Mon, 15 Feb 2016 20:11:36 +0100 | Subject | Re: [PATCH] gpio/sysfs: Add ID parameter for GPIO lines | From | Linus Walleij <> |
| |
On Thu, Dec 17, 2015 at 5:48 PM, Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> wrote:
> On named GPIOs there is currently no find out their numerical id. > > Because of this, a GPIO pin named like: > /sys/class/gpio/PROG_B > > cannot be unexported by an application different than the one that > exported it. > > This patch adds a new parameter to the GPIO line called id, that > shows the numerical id of a given GPIO. E.g.: > > $ cat /sys/class/gpio/PROG_B/id > 496 > $ echo 496 > unexport > > Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
NACK. I have just merged commits marking the entire sysfs ABI deprecated. It will *NOT* be developed. Please help out in evolving the character device instead.
c.f. http://marc.info/?l=linux-gpio&m=145494198509404&w=2 http://marc.info/?l=linux-gpio&m=145554244502862&w=2
Yours, Linus Walleij
| |