/* ioc3_set_proto - set the protocol for the port @port: port to use @proto: protocol to use  */
static int ioc3_set_proto(struct ioc3_port *port, int proto)
/* ioc3_set_proto - set the protocol for the port @port: port to use @proto: protocol to use  */
static int ioc3_set_proto(struct ioc3_port *port, int proto)
{
	struct port_hooks *hooks = port->ip_hooks;
	switch (proto) {
	default:
	case PROTO_RS232:
		DPRINT_CONFIG(("%s: rs232\n", __func__));
		writel(0, (&port->ip_idd->vma->gppr[0]
					+ hooks->rs422_select_pin));
		break;
	case PROTO_RS422:
		DPRINT_CONFIG(("%s: rs422\n", __func__));
		writel(1, (&port->ip_idd->vma->gppr[0]
					+ hooks->rs422_select_pin));
		break;
	}
	return 0;
}