/* Write a device register. The MCP interface must be enabled to prevent this function hanging.  */
void mcp_reg_write(struct mcp *mcp, unsigned int reg, unsigned int val)
/* Write a device register. The MCP interface must be enabled to prevent this function hanging.  */
void mcp_reg_write(struct mcp *mcp, unsigned int reg, unsigned int val)
{
	unsigned long flags;
	spin_lock_irqsave(&mcp->lock, flags);
	mcp->ops->reg_write(mcp, reg, val);
	spin_unlock_irqrestore(&mcp->lock, flags);
}