Skip to content

Commit

Permalink
Input: soc_button_array - update calls to gpiod_get*()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
Gnurou authored and dtor committed Oct 24, 2014
1 parent 4dfb15c commit 4668546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/soc_button_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4668546

Please sign in to comment.