patch-2.4.14 linux/arch/arm/mach-sa1100/leds-simpad.c
Next file: linux/arch/arm/mach-sa1100/leds.c
Previous file: linux/arch/arm/mach-sa1100/leds-cerf.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Oct 25 13:53:46 2001
- Orig file:
v2.4.13/linux/arch/arm/mach-sa1100/leds-simpad.c
- Orig date:
Mon Aug 27 12:41:38 2001
diff -u --recursive --new-file v2.4.13/linux/arch/arm/mach-sa1100/leds-simpad.c linux/arch/arm/mach-sa1100/leds-simpad.c
@@ -22,13 +22,16 @@
#define LED_GREEN (1)
#define LED_MASK (1)
+extern void set_cs3_bit(int value);
+extern void clear_cs3_bit(int value);
+
void simpad_leds_event(led_event_t evt)
{
unsigned long flags;
//local_irq_save(flags);
- switch (evt)
+ switch (evt)
{
case led_start:
hw_led_state = LED_GREEN;
@@ -94,8 +97,9 @@
}
if (led_state & LED_STATE_ENABLED)
- cs3_shadow |= LED2_ON;
-
+ set_cs3_bit(LED2_ON);
+ else
+ clear_cs3_bit(LED2_ON);
//local_irq_restore(flags);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)