Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pavel Machek and committed by
Jiri Kosina
bfb18d82 6fe495e0

+10 -2
+9 -1
drivers/leds/leds-lp5523.c
··· 35 35 36 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 47 #define LP5523_MAX_LEDS 9 40 48 41 49 /* Registers */
+1 -1
drivers/leds/leds-lp8501.c
··· 263 263 } 264 264 265 265 /* 266 - * Program momery sequence 266 + * Program memory sequence 267 267 * 1) set engine mode to "LOAD" 268 268 * 2) write firmware data into program memory 269 269 */