Hi, Linus On 01/28/2016 07:14 PM, Linus Walleij wrote: > On Wed, Jan 27, 2016 at 11:05 AM, Bamvor Zhang Jian > <bamvor.zhangjian@xxxxxxxxxx> wrote: > >> 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html