diff options
author | Pavel Machek <pavel@ucw.cz> | 2014-01-09 18:14:05 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-01-10 05:44:44 -0500 |
commit | bfb18d824c6a6cc401b73b1da9105aed81eb6434 (patch) | |
tree | 1576b085c224d878dea681361f02c4ed81353077 /drivers/leds | |
parent | 6fe495e0f80ebe98e311006e6ab491643340917f (diff) |
lp5523, lp8501: comment improvements
Add some comments that are not obvious from first look at the driver
to lp5523, fix typo in lp8501.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-lp5523.c | 10 | ||||
-rw-r--r-- | drivers/leds/leds-lp8501.c | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c index 6b553d9f4266..2f97651c6224 100644 --- a/drivers/leds/leds-lp5523.c +++ b/drivers/leds/leds-lp5523.c | |||
@@ -35,7 +35,15 @@ | |||
35 | 35 | ||
36 | #include "leds-lp55xx-common.h" | 36 | #include "leds-lp55xx-common.h" |
37 | 37 | ||
38 | #define LP5523_PROGRAM_LENGTH 32 | 38 | #define LP5523_PROGRAM_LENGTH 32 /* bytes */ |
39 | /* Memory is used like this: | ||
40 | 0x00 engine 1 program | ||
41 | 0x10 engine 2 program | ||
42 | 0x20 engine 3 program | ||
43 | 0x30 engine 1 muxing info | ||
44 | 0x40 engine 2 muxing info | ||
45 | 0x50 engine 3 muxing info | ||
46 | */ | ||
39 | #define LP5523_MAX_LEDS 9 | 47 | #define LP5523_MAX_LEDS 9 |
40 | 48 | ||
41 | /* Registers */ | 49 | /* Registers */ |
diff --git a/drivers/leds/leds-lp8501.c b/drivers/leds/leds-lp8501.c index f1c704f2243a..00f068b0fa6f 100644 --- a/drivers/leds/leds-lp8501.c +++ b/drivers/leds/leds-lp8501.c | |||
@@ -263,7 +263,7 @@ static void lp8501_firmware_loaded(struct lp55xx_chip *chip) | |||
263 | } | 263 | } |
264 | 264 | ||
265 | /* | 265 | /* |
266 | * Program momery sequence | 266 | * Program memory sequence |
267 | * 1) set engine mode to "LOAD" | 267 | * 1) set engine mode to "LOAD" |
268 | * 2) write firmware data into program memory | 268 | * 2) write firmware data into program memory |
269 | */ | 269 | */ |