/* Change the direction of a GPIO pin to input  */
static int lpc178x_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
/* Change the direction of a GPIO pin to input  */
static int lpc178x_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
{
	LPC178X_GPIO(LPC178X_GPIO_GETPORT(gpio))->fiodir &=
		~(1 << LPC178X_GPIO_GETPIN(gpio));
	return 0;
}