gpiolib: Use list_first_entry()/list_last_entry()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Mar 2022 10:54:14 +0000 (12:54 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 8 Mar 2022 08:52:57 +0000 (09:52 +0100)
commit243cfa6a6782809975a0002125514a57db7df752
tree8190cef26f94a36bce01ac3c7d94f2196a2ad159
parent37db988c362932b7cbd5e104d23cd4b99012cf02
gpiolib: Use list_first_entry()/list_last_entry()

Use list_first_entry()/list_last_entry() instead of open coded variants.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib.c