gpiolib: provide a dedicated function for setting lineinfo
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 3 Dec 2019 13:08:44 +0000 (14:08 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 12 Feb 2020 11:05:47 +0000 (12:05 +0100)
commitd2ac25798208fb85f866056cd7d8030eb919da99
tree955032d693ad09ee5ecaf1e7a4154f7d6f836c17
parent248ae1752e91438cb7cfc8432b88bc34410e8e4e
gpiolib: provide a dedicated function for setting lineinfo

We'll soon be filling out the gpioline_info structure in multiple
places. Add a separate function that given a gpio_desc sets all relevant
fields.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib.c