On Mon, Dec 21, 2020 at 02:42:25PM +0100, Hans de Goede wrote: > gpiod_add_lookup_table() expects the gpiod_lookup_table->table passed to > it to be terminated with a zero-ed out entry. > > So we need to allocate one more entry then we will use. > > Cc: Serge Semin <fancer.lancer@xxxxxxxxx> > Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> > Cc: Andy Shevchenko <andy@xxxxxxxxxxxxx> > Cc: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>