On Fri, Jan 29, 2016 at 11:24 AM, Bamvor Zhang Jian <bamvor.zhangjian@xxxxxxxxxx> wrote: > 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. They can probably be used in parallel. I don't have a Kconfig option for the chardev, it is always turned on, so as to make people use it. I even consider putting nasty stuff in dmesg and the boot crawl for people using the sysfs at some point. 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