Refactor i2c driver interfaces