static void enterprise_power_off(void)
{
	int ret;
	pr_info("enterprise: Powering off the device\n");
	ret = tps80031_power_off();
	if (ret)
		pr_err("enterprise: failed to power off\n");
	while(1);
}
Пример #2
0
static void endeavor_power_off(void)
{
	int ret;
#if 0
        pr_info("endeavoru: Powering off the device\n");
        ret = tps80031_power_off();
#else
        pr_info("endeavoru: Powering off the device or"
                " enter offmode charging\n");
        tps80031_power_off_or_reboot();
#endif
	if (ret)
		pr_err("endeavoru: failed to power off\n");
	while(1);
}
static void x3_power_off(void)
{
	int ret;

	pr_err("Powering off the device\n");

#if defined(CONFIG_MFD_TPS80031)
	/*
	 * power-code should be completed in tps80031
	 */
	ret = tps80031_power_off();
#endif /* defined(CONFIG_MFD_TPS80031) */
#if defined(CONFIG_MFD_MAX77663)
	/*
	 * power-code should be completed in tps80031
	 */
	ret = max77663_power_off();
#endif
	if (ret)
		pr_err("failed to power off\n");

	while(1);
}