/* Get the current state of a GPIO input pin  */
static int a2f_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
/* Get the current state of a GPIO input pin  */
static int a2f_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
{
	struct a2f_gpio_chip *a2f_chip
		= container_of(chip, struct a2f_gpio_chip, chip);
	return (readl(a2f_chip->gpio_in) >> gpio) & 1;
}