ARM: S3C2442: RX1950: Retain LEDs state in suspend
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 6 Jan 2011 19:52:51 +0000 (21:52 +0200)
committerBen Dooks <ben-linux@fluff.org>
Sun, 20 Mar 2011 23:14:55 +0000 (23:14 +0000)
s3c_adc_battery uses LEDs to indicate charging process,
retain LEDs state in suspend, otherwise user have no information if PDA
battery is charging after he put it to suspend.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2440/mach-rx1950.c

index 86bbc233b31c7dbc18ba62e8eb4334b204d1d9d9..0f6821ba9b2830a3eba7b5aafebff2293022695c 100644 (file)
@@ -268,16 +268,19 @@ static struct gpio_led rx1950_leds_desc[] = {
                .name                           = "Green",
                .default_trigger        = "main-battery-charging-or-full",
                .gpio                           = S3C2410_GPA(6),
+               .retain_state_suspended         = 1,
        },
        {
                .name                           = "Red",
                .default_trigger        = "main-battery-full",
                .gpio                           = S3C2410_GPA(7),
+               .retain_state_suspended         = 1,
        },
        {
                .name                           = "Blue",
                .default_trigger        = "rx1950-acx-mem",
                .gpio                           = S3C2410_GPA(11),
+               .retain_state_suspended         = 1,
        },
 };