OSDN Git Service

Input: soc_button_array - update calls to gpiod_get*()
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 23 Oct 2014 15:53:13 +0000 (08:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Oct 2014 21:54:44 +0000 (14:54 -0700)
Add the new flags argument to calls of (devm_)gpiod_get*().

Currently both forms (with or without the flags argument) are valid thanks
to transitional macros in <linux/gpio/consumer.h>. These macros will be
removed once all consumers are updated and the flags argument will become
compulsory.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/soc_button_array.c

index 7356047..e097f1a 100644 (file)
@@ -55,7 +55,7 @@ static int soc_button_lookup_gpio(struct device *dev, int acpi_index)
        struct gpio_desc *desc;
        int gpio;
 
-       desc = gpiod_get_index(dev, KBUILD_MODNAME, acpi_index);
+       desc = gpiod_get_index(dev, KBUILD_MODNAME, acpi_index, GPIOD_ASIS);
        if (IS_ERR(desc))
                return PTR_ERR(desc);