#endif	/* CONFIG_FB_OMAP */ 
#endif	/* CONFIG_OMAP_OSK_MISTRAL */ 
void osk_leds_event(led_event_t evt){	unsigned long	flags;	u16		leds;	local_irq_save(flags);	if (!(led_state & LED_STATE_ENABLED) && evt != led_start)		goto done;	leds = hw_led_state;	switch (evt) {	case led_start:		led_state |= LED_STATE_ENABLED;		hw_led_state = 0;		leds = ~0;		break;	case led_halted:	case led_stop:		led_state &= ~LED_STATE_ENABLED;		hw_led_state = 0;		// NOTE:  work may still be pending!!		break;	case led_claim:		led_state |= LED_STATE_CLAIMED;		hw_led_state = 0;		leds = ~0;		break;	case led_release:		led_state &= ~LED_STATE_CLAIMED;		hw_led_state = 0;		break;#ifdef	CONFIG_FB_OMAP	case led_timer:		hw_led_state ^= TIMER_LED;		mistral_setled();		break;	case led_idle_start:		hw_led_state |= IDLE_LED;		mistral_setled();		break;	case led_idle_end:		hw_led_state &= ~IDLE_LED;		mistral_setled();		break;#endif	/* CONFIG_FB_OMAP */	/* "green" == tps LED1 (leftmost, normally power-good)	 * works only with DC adapter, not on battery power!	 */	case led_green_on:		if (led_state & LED_STATE_CLAIMED)			hw_led_state |= GREEN_LED;		break;	case led_green_off:		if (led_state & LED_STATE_CLAIMED)			hw_led_state &= ~GREEN_LED;		break;	/* "amber" == tps LED2 (middle) */	case led_amber_on:		if (led_state & LED_STATE_CLAIMED)			hw_led_state |= AMBER_LED;		break;	case led_amber_off:		if (led_state & LED_STATE_CLAIMED)			hw_led_state &= ~AMBER_LED;		break;	/* "red" == LED on tps gpio3 (rightmost) */	case led_red_on:		if (led_state & LED_STATE_CLAIMED)			hw_led_state |= RED_LED;		break;	case led_red_off:		if (led_state & LED_STATE_CLAIMED)			hw_led_state &= ~RED_LED;		break;	default:		break;	}	leds ^= hw_led_state;	leds &= TPS_LEDS;	if (leds && (led_state & LED_STATE_CLAIMED)) {		tps_leds_change |= leds;		schedule_work(&work);	}done:	local_irq_restore(flags);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7c38cf021b42a4297bc8f860ab627734bdd6c8d1/leds-osk.c/clean/arch/arm/mach-omap1/leds-osk.c