summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-04-10 18:39:18 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-04-23 11:55:14 +0300
commit80c8d927dacc436963af7c0da711578e8c122db8 (patch)
treea5e370a12909b082903c2e3c2a5a6a84d0ddb54d /drivers/gpio
parent2d6c06f5a4094ab4ea15b63af72d2dab74e9415a (diff)
downloadlinux-80c8d927dacc436963af7c0da711578e8c122db8.tar.xz
gpiolib: acpi: Change type of dflags
Most of the code inside GPIO library is using enum gpiod_flags. Some of the function still operate with unsigned int. In order to be more consistent and better type checking, convert acpi_gpiochip_parse_own_gpio() to use enum gpiod_flags instead of unsigned int. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 6ee929d90a6a..36cd9abe5e55 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -1001,7 +1001,7 @@ acpi_gpiochip_parse_own_gpio(struct acpi_gpio_chip *achip,
struct fwnode_handle *fwnode,
const char **name,
unsigned long *lflags,
- unsigned int *dflags)
+ enum gpiod_flags *dflags)
{
struct gpio_chip *chip = achip->chip;
struct gpio_desc *desc;
@@ -1045,7 +1045,7 @@ static void acpi_gpiochip_scan_gpios(struct acpi_gpio_chip *achip)
device_for_each_child_node(chip->parent, fwnode) {
unsigned long lflags;
- unsigned int dflags;
+ enum gpiod_flags dflags;
struct gpio_desc *desc;
const char *name;
int ret;