/* tps65910_set_i2c_control() - Set the TPS65910 to be controlled via the I2C interface.  */
int tps65910_set_i2c_control(void)
/* tps65910_set_i2c_control() - Set the TPS65910 to be controlled via the I2C interface.  */
int tps65910_set_i2c_control(void)
{
	int ret;
	uchar buf;
	ret = tps65910_read_reg(TPS65910_DEVCTRL_REG, &buf);
	if (ret)
		return ret;
	buf |= TPS65910_DEVCTRL_REG_SR_CTL_I2C_SEL_CTL_I2C;
	return tps65910_write_reg(TPS65910_DEVCTRL_REG, &buf);
}