On Fri, Jul 31, 2015 at 10:42 AM, Jun Nie <jun.nie@xxxxxxxxxx> wrote: > We can wrap gpiochip_add into new function gpiochip_add_arg() and feed > below info to it and assign the value in the common code. It is make > the function argument list too long. Any better idea? Or you think it > is OK, then I can draft a patch for review. > > gpio_chip members: direction_input, direction_output, get, set, > request, free, ngpio, label, dev. Nah I don't see that very different from assigning the vtable directly in the code, it merely creates a function call to do the same so don't bother with it. 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