Esempio n. 1
0
static int aat28xx_resume(struct i2c_client *i2c_dev)
{
	struct aat28xx_driver_data *drvdata = i2c_get_clientdata(i2c_dev);
	aat28xx_power_internal(drvdata, 1);
	aat28xx_wakeup(drvdata);
	return 0;
}
static void aat28xx_late_resume(struct early_suspend * h)
{	
	struct aat28xx_driver_data *drvdata = container_of(h, struct aat28xx_driver_data,
						    early_suspend);

	dprintk("start\n");
	aat28xx_wakeup(drvdata);

	return;
}
Esempio n. 3
0
static void aat28xx_late_resume(struct early_suspend * h)
{	
	struct aat28xx_driver_data *drvdata = container_of(h, struct aat28xx_driver_data,
						    early_suspend);

	dprintk("start\n");
	// LGE_CHANGE [[email protected]] 2010-07-26, HACK: wait for refreshing the FB
	msleep(30);
	aat28xx_wakeup(drvdata);

	return;
}
Esempio n. 4
0
/* LGE_CHANGE_S [[email protected]] 2010-06-22, backlight on/off */
ssize_t aat28xx_lcd_backlight_onoff(struct device *dev, struct device_attribute *attr, const char * buf, size_t count)
{
	int onoff;
	struct aat28xx_driver_data *drvdata = dev_get_drvdata(dev->parent);

	sscanf(buf, "%d", &onoff);

	drvdata->mode = NORMAL_MODE;

	if(onoff)	{
		drvdata->state = POWEROFF_STATE;
		aat28xx_wakeup(drvdata);
	}
	else {
		aat28xx_sleep(drvdata);
	}

	return count;	
}