return type fix for some i2c_hal functions