static int wrap_led_resume(struct platform_device *dev) { led_classdev_resume(&wrap_power_led); led_classdev_resume(&wrap_error_led); led_classdev_resume(&wrap_extra_led); return 0; }
static int apu_led_resume(struct platform_device *dev) { led_classdev_resume(&apu_led_1); led_classdev_resume(&apu_led_2); led_classdev_resume(&apu_led_3); return 0; }
static int palmtt3led_resume(struct platform_device *dev) { led_classdev_resume(&palmtt3_red_led); led_classdev_resume(&palmtt3_green_led); led_classdev_resume(&palmtt3_red_blink_led); led_classdev_resume(&palmtt3_green_blink_led); led_classdev_resume(&palmtt3_vibra); return 0; }
static int bcm21553_led_resume(struct platform_device *dev) { printk("[KeyLED] %s\n", __func__ ); led_classdev_resume(&bcm21553_kp_bl_led); return 0; }
static void msm_pmic_led_early_resume(struct platform_device *dev) { printk("msm_pmic_led_early_resumeyyyyyyyyyyy\n"); led_classdev_resume(&msm_kp_bl_led); }
static int msm_pmic_led_resume(struct platform_device *dev) { printk("[KeyLED] %s \n", __func__); led_classdev_resume(&msm_kp_bl_led); return 0; }
static int s3c24xx_led_resume(struct platform_device *dev) { struct s3c24xx_gpio_led *led = pdev_to_gpio(dev); led_classdev_resume(&led->cdev); return 0; }
static int omap_pwm_led_resume(struct platform_device *pdev) { struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev); led_classdev_resume(&led->cdev); return 0; }
static inline void rt2x00leds_resume_led(struct rt2x00_led *led) { led_classdev_resume(&led->led_dev); /* Device might have enabled the LEDS during resume */ led->led_dev.brightness_set(&led->led_dev, LED_OFF); led->led_dev.brightness = LED_OFF; }
static int omap_pwm_led_resume(struct platform_device *pdev) { pr_debug("%s%s: \n", PASS1,__func__); struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev); led_classdev_resume(&led->cdev); return 0; }
static int msm_pmic_led_resume(struct platform_device *dev) { led_classdev_resume(&msm_kp_bl_led); #if defined (CONFIG_LGE_UNIFIED_LED) leds_pdata->resume_custom_leds(); #endif return 0; }
static int omap_pwm_led_resume(struct platform_device *pdev) { struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev); pr_debug("%s: brightness: %i\n", __func__, led->brightness); led_classdev_resume(&led->cdev); return 0; }
static int redrat3_dev_resume(struct usb_interface *intf) { struct redrat3_dev *rr3 = usb_get_intfdata(intf); rr3_ftr(rr3->dev, "resume\n"); if (usb_submit_urb(rr3->read_urb, GFP_ATOMIC)) return -EIO; led_classdev_resume(&rr3->led); return 0; }
static int led_resume(struct device *dev) { struct led_classdev *led_cdev = dev_get_drvdata(dev); if (led_cdev->flags & LED_CORE_SUSPENDRESUME) led_classdev_resume(led_cdev); return 0; }
static int accton_as7312_54x_led_resume(struct platform_device *dev) { int i = 0; for (i = 0; i < ARRAY_SIZE(accton_as7312_54x_leds); i++) { led_classdev_resume(&accton_as7312_54x_leds[i]); } return 0; }
static int msm_pmic_led_resume(struct platform_device *dev) { // ALESSI_MUST_BE [email protected] #if defined (CONFIG_LGE_UNIFIED_LED) leds_pdata->resume_custom_leds(); #else led_classdev_resume(&msm_kp_bl_led); #endif // ALESSI_MUST_BE return 0; }
static int lm3532_resume(struct i2c_client *client) { struct lm3532_data *driver_data = i2c_get_clientdata(client); blk_dbg("called resuming!\n"); led_classdev_resume(&driver_data->led_dev); gpio_direction_output(HWEN, 1); lm3532_device_configuration(driver_data); lm3532_write(driver_data->client, CONTL_A_ZONE_TARGET0, g_SetValue); return 0; }
static int redrat3_dev_resume(struct usb_interface *intf) { struct redrat3_dev *rr3 = usb_get_intfdata(intf); if (usb_submit_urb(rr3->narrow_urb, GFP_ATOMIC)) return -EIO; if (usb_submit_urb(rr3->wide_urb, GFP_ATOMIC)) return -EIO; led_classdev_resume(&rr3->led); return 0; }
static int omap_led_resume(struct platform_device *dev) { struct omap_led_platform_data *pdata = dev->dev.platform_data; struct omap_led_config *leds = pdata->leds; int i; for (i = 0; i < pdata->nr_leds; i++) led_classdev_resume(&leds[i].cdev); return 0; }
static int keypad_led_resume(struct platform_device *dev) { struct omap_led_platform_data *pdata = dev->dev.platform_data; struct omap_led_config *leds = pdata->leds; int i; for (i = 0; i < pdata->nr_leds; i++){ leds[i].cdev.flags &= ~LED_SUSPENDED; led_classdev_resume(&leds[i].cdev); } return 0; }
static int archer_led_resume(struct platform_device *dev) { struct led_platform_data *pdata = dev->dev.platform_data; struct archer_led_data *leds_data; int i; printk("[LED] %s +\n", __func__); for (i = 0; i < pdata->num_leds; i++) led_classdev_resume(&leds_data[i].cdev); return 0; }
static int lm3532_late_resume(struct early_suspend *h) { struct lm3532_data *driver_data = i2c_get_clientdata(lm3532_client); blk_dbg("called resuming!\n"); led_classdev_resume(&driver_data->led_dev); msleep(50); gpio_direction_output(HWEN, 1); lm3532_device_configuration(driver_data); lm3532_write(driver_data->client, CONTL_A_ZONE_TARGET0, g_SetValue); // gpio_direction_output(GPIO_LED, 1); return 0; }
static int hamcop_leds_resume(struct platform_device *pdev) { struct hamcop_leds_machinfo *machinfo = pdev->dev.platform_data; struct hamcop_led *leds = machinfo->leds; int i = 0; pr_debug("%s:%s\n", __FILE__, __FUNCTION__); for (i = 0; i < machinfo->num_leds; i++) led_classdev_resume(&leds[i].led_cdev); return 0; }
static int msm_pmic_led_resume(struct platform_device *dev) { /* if phone is set in system sleep indicator mode and awoke,GPIO_24 is relseased so it should be requested*/ #ifdef CONFIG_HUAWEI_LEDS_PMIC if( machine_is_msm8255_u8860lp() || machine_is_msm8255_u8860_r() ||machine_is_msm8255_u8860_51()) { led_pwm_gpio_config(); bl_pwm = pwm_request(LED_PM_GPIO25_PWM_ID, "keypad backlight"); } #endif led_classdev_resume(&msm_kp_bl_led); return 0; }
static void omap_pwm_led_late_resume(struct early_suspend *handler) { struct omap_pwm_led *led; struct led_classdev *cdev; led = container_of(handler, struct omap_pwm_led, early_suspend); cdev = &led->cdev; #ifdef CONFIG_ARCH_OMAP4 //dpll_cascading_blocker_hold(cdev->dev); #endif if (led->pwm_power_on) led->pwm_power_on(led); if (led->pdata->set_power != NULL) led->pdata->set_power(led->pdata, 1); led_classdev_resume(&led->cdev); }
void msm_pmic_led_late_resume(struct early_suspend *h) { #ifdef CONFIG_GPIO_10_11_CTRL_LED int i; int status=0; #endif led_not_suspend_flag = 1; //ccb add //printk(KERN_NOTICE "PM_DEBUG_MXP:Enter msm_pmic_led_late_resume.\n"); #ifdef CONFIG_ZTE_NLED_BLINK_WHILE_APP_SUSPEND msm_pmic_led_config_while_app2sleep( 0, 0, 0, 0, ZTE_PROC_COMM_CMD3_NLED_BLINK_DISABLE); //chenchongbao.20111209 no need #endif #if 0 /* chenchongbao.20120117 charge with ac . after led turn green from orange. press power key, orange led will apear then turn green */ for (i = 0; i < 2; i++) led_classdev_resume(&STATUS_LED->blink_led[i].led); #endif #ifdef CONFIG_GPIO_10_11_CTRL_LED for (i = 0;i < 2; i++) { status= gpio_tlmm_config(data_leds_gpio[i],GPIO_CFG_ENABLE); //printk(KERN_NOTICE "PM_DEBUG_MXP:gpio_tlmm_config led gpio return=%d.\n",status); if (status) { printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, data_leds_gpio[i], status); } } status = gpio_request(GPIO_RED_LIGHT_CTRL, "red_light_led_gpio"); //printk(KERN_NOTICE "PM_DEBUG_MXP:request red led gpio return=%d.\n",status); if(status<0) printk(KERN_NOTICE "PM_DEBUG_MXP:request red led gpio error.\n"); status = gpio_request(GPIO_GREEN_LIGHT_CTRL, "green_light_led_gpio"); //printk(KERN_NOTICE "PM_DEBUG_MXP:request green led gpio return=%d.\n",status); if(status<0) printk(KERN_NOTICE "PM_DEBUG_MXP:request green led gpio error.\n"); #endif //printk(KERN_NOTICE "PM_DEBUG_MXP:Exit msm_pmic_led_late_resume.\n"); return; }
static int mxs_led_resume(struct platform_device *dev) { /*Foxconn, KingsChen, MKD, 20131119 {*/ //For Backlight and vkey_led sync #if 0 int i; u32 val; val=__raw_readl(leds.base); if(val&BM_PWM_CTRL_SFTRST){ __raw_writel(BM_PWM_CTRL_SFTRST,leds.base+HW_PWM_CTRL_CLR); } if(val&BM_PWM_CTRL_CLKGATE){ __raw_writel(BM_PWM_CTRL_CLKGATE,leds.base+HW_PWM_CTRL_CLR); } for (i = 0; i < leds.led_num; i++) led_classdev_resume(&leds.leds[i].dev); #endif /*Foxconn, KingsChen, MKD, 20131119 }*/ return 0; }
static int palmldled_resume(struct platform_device *dev) { led_classdev_resume(&palmld_amber_led); led_classdev_resume(&palmld_green_led); return 0; }
static int corgiled_resume(struct platform_device *dev) { led_classdev_resume(&corgi_amber_led); led_classdev_resume(&corgi_green_led); return 0; }
static int clevo_mail_led_resume(struct platform_device *dev) { led_classdev_resume(&clevo_mail_led); return 0; }