Skip to content

Commit

Permalink
lp5523, lp8501: comment improvements
Browse files Browse the repository at this point in the history
Add some comments that are not obvious from first look at the driver
to lp5523, fix typo in lp8501.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
pavelmachek authored and Jiri Kosina committed Jan 10, 2014
1 parent 6fe495e commit bfb18d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion drivers/leds/leds-lp5523.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@

#include "leds-lp55xx-common.h"

#define LP5523_PROGRAM_LENGTH 32
#define LP5523_PROGRAM_LENGTH 32 /* bytes */
/* Memory is used like this:
0x00 engine 1 program
0x10 engine 2 program
0x20 engine 3 program
0x30 engine 1 muxing info
0x40 engine 2 muxing info
0x50 engine 3 muxing info
*/
#define LP5523_MAX_LEDS 9

/* Registers */
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lp8501.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static void lp8501_firmware_loaded(struct lp55xx_chip *chip)
}

/*
* Program momery sequence
* Program memory sequence
* 1) set engine mode to "LOAD"
* 2) write firmware data into program memory
*/
Expand Down

0 comments on commit bfb18d8

Please sign in to comment.