/* Supports 1 byte write to TWL RTC registers.  */
static int twl_rtc_write_u8(u8 data, u8 reg)
/* Supports 1 byte write to TWL RTC registers.  */
static int twl_rtc_write_u8(u8 data, u8 reg)
{
	int ret;
	ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg]));
	if (ret < 0)
		pr_err("twl_rtc: Could not write TWL"
		       "register %X - error %d\n", reg, ret);
	return ret;
}