lp5523, lp8501: comment improvements
authorPavel Machek <pavel@ucw.cz>
Thu, 9 Jan 2014 23:14:05 +0000 (00:14 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Jan 2014 10:44:44 +0000 (11:44 +0100)
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>
drivers/leds/leds-lp5523.c
drivers/leds/leds-lp8501.c

index 6b553d9f4266d570eec78a2180eee9b56194d62c..2f97651c6224350f0f877030bbd7bb61046dde09 100644 (file)
 
 #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 */
index f1c704f2243a132738d3104838027a4a65fbd307..00f068b0fa6f0610886d851fdfc907a759326779 100644 (file)
@@ -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
         */