Skip to content

Commit

Permalink
gpiolib: Update header block in gpiolib-cdev.h
Browse files Browse the repository at this point in the history
The dev_t is defined in types.h while struct gpio_device forward declaration
is missed. Take into account above and update header block in gpiolib-cdev.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20201005095622.73616-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Andy Shevchenko authored and Linus Walleij committed Oct 8, 2020
1 parent f188ac1 commit fc709df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpio/gpiolib-cdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#ifndef GPIOLIB_CDEV_H
#define GPIOLIB_CDEV_H

#include <linux/device.h>
#include <linux/types.h>

struct gpio_device;

#ifdef CONFIG_GPIO_CDEV

Expand Down

0 comments on commit fc709df

Please sign in to comment.