[PATCH V3] i2c: move of helpers into the core