예제 #1
0
static int sead3_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&sead3_pled);
	led_classdev_suspend(&sead3_fled);
	return 0;
}
예제 #2
0
static int apu_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&apu_led_1);
	led_classdev_suspend(&apu_led_2);
	led_classdev_suspend(&apu_led_3);
	return 0;
}
예제 #3
0
파일: leds-wrap.c 프로젝트: E-LLP/n900
static int wrap_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&wrap_power_led);
	led_classdev_suspend(&wrap_error_led);
	led_classdev_suspend(&wrap_extra_led);
	return 0;
}
예제 #4
0
static int palmtt3led_suspend(struct platform_device *dev,
			      pm_message_t state)
{
	led_classdev_suspend(&palmtt3_red_led);
	led_classdev_suspend(&palmtt3_green_led);
	led_classdev_suspend(&palmtt3_red_blink_led);
	led_classdev_suspend(&palmtt3_green_blink_led);
	led_classdev_suspend(&palmtt3_vibra);
	return 0;
}
예제 #5
0
static int corgiled_suspend(struct platform_device *dev, pm_message_t state)
{
#ifdef CONFIG_LEDS_TRIGGERS
	if (corgi_amber_led.trigger &&
	    strcmp(corgi_amber_led.trigger->name, "sharpsl-charge"))
#endif
		led_classdev_suspend(&corgi_amber_led);
	led_classdev_suspend(&corgi_green_led);
	return 0;
}
예제 #6
0
void msm_pmic_led_early_suspend(struct early_suspend *h)
{
	//int i;

	led_not_suspend_flag = 0;	//ccb add

	#ifdef CONFIG_ZTE_NLED_BLINK_WHILE_APP_SUSPEND
	//printk(KERN_NOTICE "PM_DEBUG_MXP:Enter msm_pmic_led_early_suspend.\r\n");
	//blink_led[0] red,blink_led[1] green
       	msm_pmic_led_config_while_app2sleep( STATUS_LED->blink_led[0].led.brightness,
                                            STATUS_LED->blink_led[1].led.brightness, STATUS_LED->blink_led[0].blink_flag, 
                                            STATUS_LED->blink_led[1].blink_flag, ZTE_PROC_COMM_CMD3_NLED_BLINK_ENABLE);
	#endif
	
	#ifdef CONFIG_GPIO_10_11_CTRL_LED
	gpio_free(GPIO_RED_LIGHT_CTRL);
	gpio_free(GPIO_GREEN_LIGHT_CTRL);
	#endif
	
	#if 0	/* chenchongbao.20111212 there was an interval before amss open the led */
	for (i = 0; i < 2; i++)
		led_classdev_suspend(&STATUS_LED->blink_led[i].led);
	#endif
	//printk(KERN_NOTICE "PM_DEBUG_MXP:Exit msm_pmic_led_early_suspend.\r\n");
	return;
}
예제 #7
0
static int suspend_leds(struct platform_device *dev,
                        pm_message_t state)
{
    led_classdev_suspend(&elini_custom_leds);

    return 0;
}
예제 #8
0
static int swift_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&swift_kp_bl_led);

	return 0;
}
static void msm_pmic_led_early_suspend(struct platform_device *dev,
		pm_message_t state)
{
	printk("msm_pmic_led_early_suspendxxxxxxxxxxx\n");
	led_classdev_suspend(&msm_kp_bl_led);

}
예제 #10
0
static int omap_pwm_led_suspend(struct platform_device *pdev, pm_message_t state)
{
	struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev);

	led_classdev_suspend(&led->cdev);
	return 0;
}
static int msm_pmic_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&msm_kp_bl_led);

	return 0;
}
예제 #12
0
static int s3c24xx_led_suspend(struct platform_device *dev, pm_message_t state)
{
	struct s3c24xx_gpio_led *led = pdev_to_gpio(dev);

	led_classdev_suspend(&led->cdev);
	return 0;
}
static inline void rt2x00leds_suspend_led(struct rt2x00_led *led)
{
	led_classdev_suspend(&led->led_dev);

	/* This shouldn't be needed, but just to be safe */
	led->led_dev.brightness_set(&led->led_dev, LED_OFF);
	led->led_dev.brightness = LED_OFF;
}
예제 #14
0
static int omap_pwm_led_suspend(struct platform_device *pdev, pm_message_t state)
{
	pr_debug("%s%s: \n", PASS1,__func__);
	struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev);

	led_classdev_suspend(&led->cdev);
	return 0;
}
static int lm3532_suspend(struct i2c_client *client, pm_message_t mesg)
{
	struct lm3532_data *driver_data = i2c_get_clientdata(client);
	blk_dbg("Called the pm message suspend!\n");
        led_classdev_suspend(&driver_data->led_dev);
        gpio_direction_output(HWEN, 0);
	return 0;
}
static int msm_pmic_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	printk("[KeyLED] %s \n", __func__);
	led_classdev_suspend(&msm_kp_bl_led);

	return 0;
}
static int redrat3_dev_suspend(struct usb_interface *intf, pm_message_t message)
{
    struct redrat3_dev *rr3 = usb_get_intfdata(intf);
    rr3_ftr(rr3->dev, "suspend\n");
    led_classdev_suspend(&rr3->led);
    usb_kill_urb(rr3->read_urb);
    usb_kill_urb(rr3->flash_urb);
    return 0;
}
예제 #18
0
static int led_suspend(struct device *dev, pm_message_t state)
{
	struct led_classdev *led_cdev = dev_get_drvdata(dev);

	if (led_cdev->flags & LED_CORE_SUSPENDRESUME)
		led_classdev_suspend(led_cdev);

	return 0;
}
static int lm3532_early_suspend(struct early_suspend *h)
{
	struct lm3532_data *driver_data = i2c_get_clientdata(lm3532_client);
	blk_dbg("Called the pm message suspend!\n");
    led_classdev_suspend(&driver_data->led_dev);
//	gpio_direction_output(GPIO_LED, 0);
    gpio_direction_output(HWEN, 0);
	return 0;
}
예제 #20
0
static int omap_pwm_led_suspend(struct platform_device *pdev, pm_message_t state)
{
	struct omap_pwm_led *led = pdev_to_omap_pwm_led(pdev);

	pr_debug("%s: brightness: %i\n", __func__,
			led->brightness);
	led_classdev_suspend(&led->cdev);
	return 0;
}
예제 #21
0
파일: redrat3.c 프로젝트: mkrufky/linux
static int redrat3_dev_suspend(struct usb_interface *intf, pm_message_t message)
{
	struct redrat3_dev *rr3 = usb_get_intfdata(intf);

	led_classdev_suspend(&rr3->led);
	usb_kill_urb(rr3->narrow_urb);
	usb_kill_urb(rr3->wide_urb);
	usb_kill_urb(rr3->flash_urb);
	return 0;
}
예제 #22
0
static int msm_pmic_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
	led_classdev_suspend(&msm_kp_bl_led);

#if defined (CONFIG_LGE_UNIFIED_LED)
	leds_pdata->suspend_custom_leds();
#endif
	return 0;
}
예제 #23
0
static int omap_led_suspend(struct platform_device *dev, pm_message_t state)
{
	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_suspend(&leds[i].cdev);

	return 0;
}
static int accton_as7312_54x_led_suspend(struct platform_device *dev,
        pm_message_t state)
{
    int i = 0;

    for (i = 0; i < ARRAY_SIZE(accton_as7312_54x_leds); i++) {
        led_classdev_suspend(&accton_as7312_54x_leds[i]);
    }

    return 0;
}
예제 #25
0
static int keypad_led_suspend(struct platform_device *dev, pm_message_t state)
{
	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_suspend(&leds[i].cdev);
	}
	return 0;
}
예제 #26
0
static int msm_pmic_led_suspend(struct platform_device *dev,
		pm_message_t state)
{
// ALESSI_MUST_BE [email protected]
#if defined (CONFIG_LGE_UNIFIED_LED)
	leds_pdata->suspend_custom_leds();
#else
	led_classdev_suspend(&msm_kp_bl_led);
#endif
// ALESSI_MUST_BE
	return 0;
}
static int archer_led_suspend(struct platform_device *dev, pm_message_t state)
{
	struct led_platform_data *pdata = dev->dev.platform_data;
	struct archer_led_data *leds_data;
	int i;
  
	printk("[LED] %s +\n", __func__);  
	printk("[LED] %s nuim_leds=%d \n", __func__, pdata->num_leds);
	for (i = 0; i < pdata->num_leds; i++) 
		led_classdev_suspend(&leds_data[i].cdev);

	return 0;
}
예제 #28
0
static int mxs_led_suspend(struct platform_device *dev, pm_message_t state)
{
    /*Foxconn, KingsChen, MKD, 20131119 {*/
    //For Backlight and vkey_led sync
    #if 0
    int i;

	for (i = 0; i < leds.led_num; i++)
		led_classdev_suspend(&leds.leds[i].dev);
    #endif
    /*Foxconn, KingsChen, MKD, 20131119 }*/
	return 0;
}
예제 #29
0
static int led_suspend(struct device *dev, pm_message_t state)
{
	struct led_classdev *led_cdev = dev_get_drvdata(dev);

#ifdef CONFIG_MACH_MIXTILE4X12
	last_brightness = -1;
#endif
	
	if (led_cdev->flags & LED_CORE_SUSPENDRESUME)
		led_classdev_suspend(led_cdev);

	return 0;
}
예제 #30
0
static int hamcop_leds_suspend(struct platform_device *pdev,
                               pm_message_t state)
{
	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_suspend(&leds[i].led_cdev);

	return 0;
}