コード例 #1
0
static void bl_early_resume(struct early_suspend *h)
{
	if (lm3530_suspension.suspended) {
		lm3530_suspension.suspended = 0;
		lm3530_backlight_on(saved_main_lcd_level);
	}
}
コード例 #2
0
void lm3530_lcd_backlight_set_level(int level)
{
	if (level > MAX_LEVEL)
		level = MAX_LEVEL;

	if (lm3530_i2c_client != NULL) {
		if (level == 0)
			lm3530_backlight_off(h);
		else
			lm3530_backlight_on(level);

		/*printk("%s() : level is : %d\n", __func__, level);*/
	} else{
		printk(KERN_INFO "%s(): No client\n", __func__);
	}
}
コード例 #3
0
void lm3530_lcd_backlight_set_level( int level)
{
	if (level > MAX_LEVEL_BL)
		level = MAX_LEVEL_BL;

	if(lm3530_i2c_client!=NULL )
	{		
		if(level == 0) {
			lm3530_backlight_off();
		} else {
			lm3530_backlight_on(level);
		}

	}else{
		printk("%s(): No client\n",__func__);
	}
}
コード例 #4
0
ファイル: lm3530_bl.c プロジェクト: ChangYeoun/bbbb
void lm3530_lcd_backlight_set_level(int level)
{
	struct i2c_client *client = lm3530_i2c_client;

	if (!client) {
		pr_warn("%s: not yet enabled\n", __func__);
		return;
	}

	if (level > max_br)
		level = max_br;

	pr_debug("%s: level %d\n", __func__, level);
	if (level)
		lm3530_backlight_on(client, level);
	else
		lm3530_backlight_off(client);
}
コード例 #5
0
ファイル: lm3530_bl.c プロジェクト: ChangYeoun/F93_Kite
void lm3530_lcd_backlight_set_level(int level)
{
	struct i2c_client *client = lm3530_i2c_client;
	struct lm3530_device *dev = i2c_get_clientdata(client);

	if (!client) {
		pr_warn("%s: not yet enabled\n", __func__);
		return;
	}

	if (level > dev->max_brightness)
		level = dev->max_brightness;

	pr_debug("%s: level %d\n", __func__, level);
	if (level)
		lm3530_backlight_on(client, level);
	else
		lm3530_backlight_off(client);
}
コード例 #6
0
void lm3530_lcd_backlight_set_level(int level)
{
	if (level == 0xFF) {
		if (backlight_status == LM3530_BL_OFF)
			return;
		backlight_poweroff_charging = 1;
		lm3530_backlight_off(h);
	} else {
		backlight_poweroff_charging = 0;
		if (lm3530_i2c_client != NULL) {
			if (level == 0)
				lm3530_backlight_off(h);
			else
				lm3530_backlight_on(level);
		} else {
			printk(KERN_INFO "%s(): No client\n", __func__);
		}

	}
}
コード例 #7
0
ファイル: lm3530_bl.c プロジェクト: ChangYeoun/F93_Kite
static int lm3530_bl_resume(struct i2c_client *client)
{
	lm3530_backlight_on(client, saved_main_lcd_level);
	return 0;
}