Esempio n. 1
0
static int act8846_resume(struct i2c_client *i2c)
{
/****add by nition at 20130527 s********************/	
#if 0
	int ret,k=10;	
       u16 val = 0;//add by nition 
       struct act8846 *act8846 = g_act8846;
	//ret = act8846_set_bits(act8846, 0xe4,(0x1<<7),(0x1<<7));
	val=0x8f;
	ret = act8846_i2c_write(act8846->i2c, 0xe4, 1, val);	
	printk("act8846_i2c_write ret =%d  ***********wakeup\n",ret);
	while(ret<0){
		ret = act8846_i2c_write(act8846->i2c, 0xe4, 1, val);	
		if(ret>0)break;
		k--;
		if(k<0){
			printk("act8846_i2c_write error -----wakeup nition\n");
			break;
			}
	}	
	act8846_i2c_read(act8846->i2c, 0xe4, 1, &val);
	printk("act8846_resume 0xe4 = %d******************nition\n",val);
#endif
/****add by nition at 20130527 e********************/	
	act8846_device_resume();

	return 0;
}
Esempio n. 2
0
static int act8846_resume(struct device *dev)
{
	act8846_device_resume();
	return 0;
}
Esempio n. 3
0
static int act8846_resume(struct i2c_client *i2c)
{
	act8846_device_resume();
	return 0;
}