/* Get the current state of a GPIO input pin  */
static int kinetis_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
/* Get the current state of a GPIO input pin  */
static int kinetis_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
{
	return (KINETIS_GPIO(KINETIS_GPIO_GETPORT(gpio))->pdir >>
		KINETIS_GPIO_GETPIN(gpio)) & 1;
}