Skip to content

Commit

Permalink
gpio: forward-declare enum gpiod_flags
Browse files Browse the repository at this point in the history
This enum is used in the gpiolib.h header file, yet
<linux/gpio/consumer.h> is not included so plainly including this
file (and some drivers do) will raise compile problems.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Linus Walleij committed Dec 11, 2015
1 parent e1fef9e commit 29ab875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpiolib.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/device.h>

enum of_gpio_flags;

enum gpiod_flags;
struct acpi_device;

/**
Expand Down

0 comments on commit 29ab875

Please sign in to comment.