/* Routine: twl4030_regulator_set_mode Description: Set twl4030 regulator mode over i2c powerbus.  */
static void twl4030_regulator_set_mode(u8 id, u8 mode)
/* Routine: twl4030_regulator_set_mode Description: Set twl4030 regulator mode over i2c powerbus.  */
static void twl4030_regulator_set_mode(u8 id, u8 mode)
{
	u16 msg = MSG_SINGULAR(DEV_GRP_P1, id, mode);
	twl4030_i2c_write_u8(TWL4030_CHIP_PM_MASTER,
			     TWL4030_PM_MASTER_PB_WORD_MSB, msg >> 8);
	twl4030_i2c_write_u8(TWL4030_CHIP_PM_MASTER,
			     TWL4030_PM_MASTER_PB_WORD_LSB, msg & 0xff);
}