Message ID | 1486383041-16758-7-git-send-email-bgolaszewski@baylibre.com |
---|---|
State | New |
Headers | show |
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski <bgolaszewski@baylibre.com> wrote: > We want pull gpiolib.h in from the gpio mockup driver, but gpiod_flags > is defined in consumer.h, so we need that too indirectly. > > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Can't you just add the include to the mockup driver...? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 2495b7e..067e5e5 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -13,6 +13,7 @@ #define GPIOLIB_H #include <linux/gpio/driver.h> +#include <linux/gpio/consumer.h> #include <linux/err.h> #include <linux/device.h> #include <linux/module.h>
We want pull gpiolib.h in from the gpio mockup driver, but gpiod_flags is defined in consumer.h, so we need that too indirectly. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> --- drivers/gpio/gpiolib.h | 1 + 1 file changed, 1 insertion(+)