From 2d3be7c456f9d0bcfd4d4b0515aecd32d6a06037 Mon Sep 17 00:00:00 2001 From: Jason Kridner Date: Sun, 4 Sep 2011 14:40:16 -0400 Subject: led: remove camel casing of led identifiers globally Result of running the following command to address Wolfgang's comment about camel case: for file in `find . | grep '\.[chS]$'`; do perl -i -pe 's/(green|yellow|red|blue)_LED_(on|off)/$1_led_$2/g' $file; done Discussion: http://patchwork.ozlabs.org/patch/84988/ Signed-off-by: Jason Kridner Signed-off-by: Joel A Fernandes Signed-off-by: Sandeep Paulraj --- board/atmel/at91rm9200ek/led.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/atmel') diff --git a/board/atmel/at91rm9200ek/led.c b/board/atmel/at91rm9200ek/led.c index 1766ddf..facba24 100644 --- a/board/atmel/at91rm9200ek/led.c +++ b/board/atmel/at91rm9200ek/led.c @@ -36,37 +36,37 @@ #define YELLOW_LED (1<<1) #define RED_LED (1<<2) -void green_LED_on(void) +void green_led_on(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(GREEN_LED, &pio->piob.codr); } -void yellow_LED_on(void) +void yellow_led_on(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(YELLOW_LED, &pio->piob.codr); } -void red_LED_on(void) +void red_led_on(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(RED_LED, &pio->piob.codr); } -void green_LED_off(void) +void green_led_off(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(GREEN_LED, &pio->piob.sodr); } -void yellow_LED_off(void) +void yellow_led_off(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(YELLOW_LED, &pio->piob.sodr); } -void red_LED_off(void) +void red_led_off(void) { at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; writel(RED_LED, &pio->piob.sodr); -- cgit v1.1