]> 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)
commite515754b3544d49d91cbaf9d9ab501928b7c047b
tree6ee81d2ce5f4db53521b9552d666d85aff39bb1e
parent50a08dcc41c15306d09adf6a60a3b4069bafd481
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