Thread (71 messages) 71 messages, 10 authors, 2016-02-10

Re: [PATCH 3/6] gpio: add a userspace chardev ABI for GPIOs

From: Bamvor Zhang Jian <hidden>
Date: 2016-01-29 10:24:46

Hi, Linus

On 01/28/2016 07:14 PM, Linus Walleij wrote:
On Wed, Jan 27, 2016 at 11:05 AM, Bamvor Zhang Jian
[off-list ref] wrote:
quoted
From the api(ioctl GPIO_GET_CHIPINFO_IOCTL: gpiochip_info), it seems
that I could list all the gpiochips or list only one gpiochip. But
I could not list gpiochip belongs to one gpio driver.
I think you can get that information from parsing sysfs?
Yeap, I could get the directory:
"/sys/devices/platform/gpio-mockup/gpio/"

I notice that you mark the sysfs ABI as obsolete in these series. I
am not sure whether it is reasonable to read it from syfs when using
chardev.

Regars

Bamvor
Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help