diff options
author | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-08-02 18:19:17 +0200 |
---|---|---|
committer | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-08-02 18:19:17 +0200 |
commit | 4309a7ffa8aa46ac2fc4090cebc3efeb00dce72f (patch) | |
tree | 4e921b7278a0c70cc2f0343723531104c8715d8e /drivers/leds | |
parent | aee942529585777f1e63112abb6d1422dbd82d1f (diff) | |
download | kernel_samsung_smdk4412-4309a7ffa8aa46ac2fc4090cebc3efeb00dce72f.zip kernel_samsung_smdk4412-4309a7ffa8aa46ac2fc4090cebc3efeb00dce72f.tar.gz kernel_samsung_smdk4412-4309a7ffa8aa46ac2fc4090cebc3efeb00dce72f.tar.bz2 |
an30259a: don't restrict led brightness in user case
Change-Id: I06f95c11d5946abe7d50fca60ea1752986e31733
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-an30259a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/leds/leds-an30259a.c b/drivers/leds/leds-an30259a.c index a08c2ca..5d351c4 100644 --- a/drivers/leds/leds-an30259a.c +++ b/drivers/leds/leds-an30259a.c @@ -74,9 +74,9 @@ #define LED_IMAX_SHIFT 6 #define AN30259A_CTN_RW_FLG 0x80 -#define LED_R_CURRENT 0x32 //0x28 -#define LED_G_CURRENT 0x32 //0x28 -#define LED_B_CURRENT 0x32 //0x28 +#define LED_R_CURRENT 0x28 +#define LED_G_CURRENT 0x28 +#define LED_B_CURRENT 0x28 #define LED_MAX_CURRENT 0xFF #define LED_OFF 0x00 @@ -404,7 +404,7 @@ static void an30259a_set_led_blink(enum an30259a_led_enum led, brightness = LED_MAX_CURRENT; /* In user case, LED current is restricted to less than 2mA */ - brightness = (brightness * LED_R_CURRENT) / LED_MAX_CURRENT + 1; + //brightness = (brightness * LED_R_CURRENT) / LED_MAX_CURRENT + 1; if (delay_on_time > SLPTT_MAX_VALUE) delay_on_time = SLPTT_MAX_VALUE; |