示例#1
0
//                                        
//extern bool in_call_state(void);
//                                        
static int wm8994_i2c_suspend(struct i2c_client *i2c, pm_message_t state)
{
  //                                        
//	if (in_call_state())
//		return 0;
  //                                        
 //                                             
#if 0
#if defined(CONFIG_ARCH_TEGRA)
	tegra_gpio_enable(GPIO_WM8994_LDO_EN);
	gpio_set_value(GPIO_WM8994_LDO_EN, 0);
#endif /* defined(CONFIG_ARCH_TEGRA) */
#endif
//                                             
	pr_err(" wm8994-core.c [%s] \n", __func__);
	return wm8994_suspend(&i2c->dev);
}
示例#2
0
static int wm8994_i2c_suspend(struct i2c_client *i2c, pm_message_t state)
{
    return wm8994_suspend(&i2c->dev);
}