On Mon, Jun 6, 2016 at 2:44 AM, Vincent Pelletier <plr.vincent@xxxxxxxxx> wrote: > (please keep me CC'ed in replies, I'm not getting a majordomo > subscription confirmation mail) Please put me on To: on patches related to GPIO... > I see drivers using GPIOs should use descriptors instead of gpio > number. I fail to see how I should convert this driver to use > descriptors. Or at least, I like a lot that this module has extremely > little actual code, as I would expect from something which essentially > does the same work as ACPI tables. Is it also achievable with > descriptors ? Yes, you can have static mappings, it's a bit tricky and only done in a few places in the kernel. You have to add a static lookup table using #include <linux/gpio/machine.h> See: arch/arm/mach-integrator/impd1.c function impd1_probe() for an example. git grep gpiod_add_lookup_table for other examples. 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