static void bl_early_resume(struct early_suspend *h) { if (lm3530_suspension.suspended) { lm3530_suspension.suspended = 0; lm3530_backlight_on(saved_main_lcd_level); } }
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__); } }
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__); } }
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); }
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); }
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__); } } }
static int lm3530_bl_resume(struct i2c_client *client) { lm3530_backlight_on(client, saved_main_lcd_level); return 0; }