|
@@ -23,7 +23,7 @@
|
|
#include <linux/ioport.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
#include <linux/pci.h>
|
|
#include <linux/pci.h>
|
|
-#include <linux/gpio.h>
|
|
|
|
|
|
+#include <linux/gpio/driver.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/mfd/lpc_ich.h>
|
|
#include <linux/mfd/lpc_ich.h>
|
|
|
|
|
|
@@ -176,7 +176,7 @@ static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr)
|
|
|
|
|
|
static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr)
|
|
static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr)
|
|
{
|
|
{
|
|
- return ichx_read_bit(GPIO_IO_SEL, nr) ? GPIOF_DIR_IN : GPIOF_DIR_OUT;
|
|
|
|
|
|
+ return ichx_read_bit(GPIO_IO_SEL, nr);
|
|
}
|
|
}
|
|
|
|
|
|
static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
|
|
static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
|