diff options
author | Milo Kim <milo.kim@ti.com> | 2013-08-08 06:45:45 +0200 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-08-27 02:22:12 +0200 |
commit | 1eca0b3ab8d04e2b1749b28cbcafbba6f6e74225 (patch) | |
tree | 9b5bbac0f71bb731e5014f30159d8b98ec6a2968 /block | |
parent | leds: lp5521: restore legacy device attributes (diff) | |
download | linux-1eca0b3ab8d04e2b1749b28cbcafbba6f6e74225.tar.xz linux-1eca0b3ab8d04e2b1749b28cbcafbba6f6e74225.zip |
leds: lp5521: remove unnecessary writing commands
This patch reduces the number of programming commands.
(Count of sending commands)
Old code: 32 + program size (32 counts for clearing program memory)
New code: 32
Pattern buffer is initialized to 0 in this function.
Just update new program data and remaining buffers are filled with 0.
So it's needless to clear whole area.
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions