gpio: htc-gpio: Include the right header
This driver is a pure GPIO driver and should only include <linux/gpio/driver.h>. Drop the include of <linux/gpio.h> from the platform data header as well, it serves no purpose. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#include <linux/gpio/driver.h>
|
||||||
|
|
||||||
struct egpio_chip {
|
struct egpio_chip {
|
||||||
int reg_start;
|
int reg_start;
|
||||||
|
@@ -6,8 +6,6 @@
|
|||||||
#ifndef __HTC_EGPIO_H__
|
#ifndef __HTC_EGPIO_H__
|
||||||
#define __HTC_EGPIO_H__
|
#define __HTC_EGPIO_H__
|
||||||
|
|
||||||
#include <linux/gpio.h>
|
|
||||||
|
|
||||||
/* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */
|
/* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */
|
||||||
#define HTC_EGPIO_OUTPUT (~0)
|
#define HTC_EGPIO_OUTPUT (~0)
|
||||||
#define HTC_EGPIO_INPUT 0
|
#define HTC_EGPIO_INPUT 0
|
||||||
|
Reference in New Issue
Block a user