Update to support passing in I2C provider.