/* Takes an array of register address/register value pairs and writes each value to the corresponding register. Register addresses are adjusted by the supplied offset.  */
void t3_write_regs(struct adapter *adapter, const struct addr_val_pair *p, int n, unsigned int offset)
/* Takes an array of register address/register value pairs and writes each value to the corresponding register. Register addresses are adjusted by the supplied offset.  */
void t3_write_regs(struct adapter *adapter, const struct addr_val_pair *p, int n, unsigned int offset)
{
	while (n--) {
		t3_write_reg(adapter, p->reg_addr + offset, p->val);
		p++;
	}
}