i2c.c: Added missing adv_func support to some functions