On Thu, Dec 3, 2015 at 3:04 PM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: > 3-1. Split gpio_chip in a static descriptor with a vtable for callbacks > and other static config called struct gpio_chip, and > struct gpio_device that is returned as a pointer from > gpiochip_add(). It will need to be free:ed by gpiodevice_remove() > after that. This will look something like this uglyhack: https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-gpio.git/commit/?h=gpiochip-desc&id=610b19c1832acfdf6ff62523addfa08b76f77343 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