提交 bfb18d82 编写于 作者: P Pavel Machek 提交者: Jiri Kosina

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: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 6fe495e0
...@@ -35,7 +35,15 @@ ...@@ -35,7 +35,15 @@
#include "leds-lp55xx-common.h" #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 #define LP5523_MAX_LEDS 9
/* Registers */ /* Registers */
......
...@@ -263,7 +263,7 @@ static void lp8501_firmware_loaded(struct lp55xx_chip *chip) ...@@ -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" * 1) set engine mode to "LOAD"
* 2) write firmware data into program memory * 2) write firmware data into program memory
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册