/* This function reads the specified signal of the GPIO device. It returns 0 if the signal clear, 1 if signal is set or negative value on error.  */
static int xgpio_get(struct gpio_chip *gc, unsigned int gpio)
/* This function reads the specified signal of the GPIO device. It returns 0 if the signal clear, 1 if signal is set or negative value on error.  */
static int xgpio_get(struct gpio_chip *gc, unsigned int gpio)
{
	struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
	return (in_be32(mm_gc->regs + XGPIO_DATA_OFFSET) >> gpio) & 1;
}