update the i2c irq config function.