On Thu, Oct 4, 2018 at 10:18 PM Brandon Maier <brandon.maier@xxxxxxxxxxxxxxxxxxx> wrote: > If a gpiochip sets it's gpio_chip->names, it must give every gpio a > unique name. However we may not need to name all gpios, for example if > they are unused. gpio-line-names allows this by ignoring gpios with > empty names. But gpiochip_set_desc_names() will yell at us, as the empty > name will collide with other empty names. Fix this by skipping empty > strings, so that they look like unnamed gpios. > > Signed-off-by: Brandon Maier <brandon.maier@xxxxxxxxxxxxxxxxxxx> Isn't the real problem that they should be passing NULL rather than "" empty string for line names? Yours, Linus Walleij