/* Note that changes are synched to the GPIO clock, so reading values back right after you've set them may give old values.  */
static int davinci_gpio_get(struct gpio_chip *chip, unsigned offset)
/* Note that changes are synched to the GPIO clock, so reading values back right after you've set them may give old values.  */
static int davinci_gpio_get(struct gpio_chip *chip, unsigned offset)
{
	struct davinci_gpio *d = container_of(chip, struct davinci_gpio, chip);
	struct gpio_controller *__iomem g = d->regs;
	return (1 << offset) & __raw_readl(&g->in_data);
}