Subject: Re: [PATCH next v2] gpiolib: check for parent device in devprop_gpiochip_set_names()

From: Mika Westerberg <[email-masked]>
Date: Thu, 17 Sep 2020 12:55:14 +0300

On Thu, Sep 17, 2020 at 09:48:57AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <[email-masked]>
> 
> It's possible for a GPIO chip to not have a parent device (whose
> properties we inspect for 'gpio-line-names'). In this case we should
> simply return from devprop_gpiochip_set_names(). Add an appropriate
> check for this use-case.
> 
> Fixes: 7cba1a4d5e16 ("gpiolib: generalize devprop_gpiochip_set_names() for device properties")
> Reported-by: Anders Roxell <[email-masked]>
> Signed-off-by: Bartosz Golaszewski <[email-masked]>
> Reviewed-by: Andy Shevchenko <[email-masked]>
> Tested-by: Anders Roxell <[email-masked]>

FWIW,

Reviewed-by: Mika Westerberg <[email-masked]>