/* Get the current state of a GPIO input pin  */
static int lpc178x_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
/* Get the current state of a GPIO input pin  */
static int lpc178x_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
{
	return (LPC178X_GPIO(LPC178X_GPIO_GETPORT(gpio))->fiopin >>
		LPC178X_GPIO_GETPIN(gpio)) & 1;
}