gpiolib: acpi: Convert type for pin to be unsigned
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 17 Mar 2022 09:33:11 +0000 (11:33 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 12:13:22 +0000 (15:13 +0300)
commit0c2cae09a765b1c1d842eb9328982976ec735926
tree6ee81d2ce5f4db53521b9552d666d85aff39bb1e
parent213d266ebfb1621aab79cfe63388facc520a1381
gpiolib: acpi: Convert type for pin to be unsigned

A pin that comes from ACPI tables is of unsigned type. This also applies
to the internal APIs which use unsigned int to store the pin. Convert
type for pin to be unsigned in the places where it's not yet true.

While at it, add a stub for acpi_get_and_request_gpiod() for the sake
of consistency in the APIs.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c
include/linux/gpio/consumer.h