]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedfa4f5c62445b88f7bb442837b700cd9299cb37
tree6ee81d2ce5f4db53521b9552d666d85aff39bb1e
parente61f60ecc81cc1618bb8e2f4b3a6257ea8b3e8b1
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