예제 #1
0
static int wm8994_i2c_resume(struct i2c_client *i2c)
{
  //                                        
//	if (in_call_state())
//		return 0;
  //                                        
#if 0//defined(CONFIG_ARCH_TEGRA)
	int ret;

	tegra_gpio_enable(GPIO_WM8994_LDO_EN);
	ret = gpio_direction_output(GPIO_WM8994_LDO_EN, 1);
	if (ret < 0) {
		printk(KERN_ERR "Can't set gpio direction to output %d: %d\n",
			GPIO_WM8994_LDO_EN, ret);
		return ret;
	}

	gpio_set_value(GPIO_WM8994_LDO_EN, 1);
	msleep(10);
#endif /* defined(CONFIG_ARCH_TEGRA) */
	pr_err(" wm8994-core.c [%s] \n", __func__);
	return wm8994_resume(&i2c->dev);
}
예제 #2
0
파일: wm8994-core.c 프로젝트: WenBinWu/m040
static int wm8994_i2c_resume(struct i2c_client *i2c)
{
    return wm8994_resume(&i2c->dev);
}