style: Fix case statement formatting in power management callbacks.

Remove unnecessary parentheses around case labels in switch statements
for power management callback functions. This fixes checkpatch style
violations for case statement formatting.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2026-01-10 16:09:50 +08:00
committed by Alan C. Assis
parent 664d2d7213
commit 8b3862d19b
38 changed files with 169 additions and 155 deletions
@@ -96,7 +96,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -104,7 +104,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -112,13 +112,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -95,25 +95,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -95,25 +95,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -97,7 +97,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -105,7 +105,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -113,13 +113,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -99,7 +99,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -107,7 +107,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -115,13 +115,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -97,7 +97,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -105,7 +105,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -113,13 +113,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -94,7 +94,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -102,7 +102,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -110,13 +110,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -94,7 +94,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -102,7 +102,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -110,13 +110,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -94,7 +94,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case (PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -102,7 +102,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -110,13 +110,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case (PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -123,25 +123,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -105,25 +105,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -120,25 +120,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -103,25 +103,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -262,25 +262,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -246,25 +246,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -86,25 +86,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -85,25 +85,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -86,25 +86,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -97,25 +97,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -262,25 +262,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -1135,7 +1135,7 @@ static void stm3210e_pm_notify(struct pm_callback_s *cb, int domain,
switch (pmstate)
{
case (PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LCD operation */
@@ -1152,7 +1152,7 @@ static void stm3210e_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Reduce LCD light */
@@ -1172,7 +1172,7 @@ static void stm3210e_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Turn display backlight off */
@@ -1182,7 +1182,7 @@ static void stm3210e_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Turn off LCD */
@@ -258,25 +258,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -96,25 +96,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -95,25 +95,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -96,25 +96,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -85,25 +85,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -85,25 +85,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -98,25 +98,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -85,25 +85,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -86,25 +86,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -85,25 +85,25 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
@@ -103,7 +103,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal buttons operation
* XXX turn on any GPIO
@@ -111,7 +111,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - buttons
* XXX turn on any GPIO
@@ -119,7 +119,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here
* XXX turn off any GPIO
@@ -127,7 +127,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here
* XXX turn off any GPIO
@@ -85,7 +85,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -99,7 +99,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -108,7 +108,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
@@ -117,7 +117,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
@@ -103,7 +103,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal buttons operation
* XXX turn on any GPIO
@@ -111,7 +111,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - buttons
* XXX turn on any GPIO
@@ -119,7 +119,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here
* XXX turn off any GPIO
@@ -127,7 +127,7 @@ static void button_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here
* XXX turn off any GPIO
@@ -85,7 +85,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -99,7 +99,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -108,7 +108,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
@@ -117,7 +117,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
@@ -84,13 +84,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case(PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
}
break;
case(PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -99,7 +99,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
@@ -108,7 +108,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case(PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
@@ -94,7 +94,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
{
switch (pmstate)
{
case (PM_NORMAL):
case PM_NORMAL:
{
/* Restore normal LEDs operation */
@@ -102,7 +102,7 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_IDLE):
case PM_IDLE:
{
/* Entering IDLE mode - Turn leds off */
@@ -110,13 +110,13 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain,
}
break;
case (PM_STANDBY):
case PM_STANDBY:
{
/* Entering STANDBY mode - Logic for PM_STANDBY goes here */
}
break;
case (PM_SLEEP):
case PM_SLEEP:
{
/* Entering SLEEP mode - Logic for PM_SLEEP goes here */
}
+21 -7
View File
@@ -126,13 +126,27 @@ void put_name(const char * cp)
{
switch (*cp)
{
case '\"': printf("\\\""); break;
case '\'': printf("\\\'"); break;
case '\\': printf("\\\\"); break;
case '\a': printf("\\a"); break;
case '\b': printf("\\b"); break;
case '\n': printf("\\n"); break;
case '\t': printf("\\t"); break;
case '\"':
printf("\\\"");
break;
case '\'':
printf("\\\'");
break;
case '\\':
printf("\\\\");
break;
case '\a':
printf("\\a");
break;
case '\b':
printf("\\b");
break;
case '\n':
printf("\\n");
break;
case '\t':
printf("\\t");
break;
default:
if (iscntrl(*cp))
{