/* This function sets a pin to the GPIO mode.  */
void qe_pin_set_gpio(struct qe_pin *qe_pin)
/* This function sets a pin to the GPIO mode.  */
void qe_pin_set_gpio(struct qe_pin *qe_pin)
{
	struct qe_gpio_chip *qe_gc = qe_pin->controller;
	struct qe_pio_regs __iomem *regs = qe_gc->mm_gc.regs;
	unsigned long flags;
	spin_lock_irqsave(&qe_gc->lock, flags);
	__par_io_config_pin(regs, qe_pin->num, QE_PIO_DIR_IN, 0, 0, 0);
	spin_unlock_irqrestore(&qe_gc->lock, flags);
}