Andy Shevchenko 6cb59afe9e gpiolib: Assign fwnode to parent's if no primary one provided
In case when the properties are supplied in the secondary fwnode
(for example, built-in device properties) the fwnode pointer left
unassigned. This makes unable to retrieve them.

Assign fwnode to parent's if no primary one provided.

Fixes: 7cba1a4d5e16 ("gpiolib: generalize devprop_gpiochip_set_names() for device properties")
Fixes: 2afa97e9868f ("gpiolib: Read "gpio-line-names" from a firmware node")
Reported-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
2021-03-16 10:18:08 +01:00
..
2020-07-20 15:34:59 +02:00
2020-07-23 15:03:25 +02:00
2020-01-15 11:24:19 +01:00
2019-09-03 16:04:19 +02:00
2020-12-09 15:17:24 +01:00
2019-11-07 09:27:48 +01:00
2020-12-09 15:17:24 +01:00
2021-02-15 11:43:30 +01:00
2019-11-07 09:27:48 +01:00
2019-12-09 10:40:18 +01:00
2020-12-09 15:17:24 +01:00
2021-02-22 08:50:01 -08:00
2021-02-15 11:43:33 +01:00