diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-03-23 18:02:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 19:58:35 -0400 |
commit | d06cb46c3e59e4f212bc7b86720a073a1aee1f63 (patch) | |
tree | 31c84ae4f200ba3fad2d7651a5a5415e91ddbc1d /drivers/leds | |
parent | 42960b76d2c6a44d7e8000f4eb9a4ca1780059ff (diff) |
drivers/leds/leds-lp5523.c: constify some data
Saves ~50 bytes text and speeds things up.
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-lp5523.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c index 73e791ae7259..857a3e15f2dd 100644 --- a/drivers/leds/leds-lp5523.c +++ b/drivers/leds/leds-lp5523.c | |||
@@ -152,7 +152,7 @@ static inline struct lp5523_chip *led_to_lp5523(struct lp5523_led *led) | |||
152 | 152 | ||
153 | static int lp5523_set_mode(struct lp5523_engine *engine, u8 mode); | 153 | static int lp5523_set_mode(struct lp5523_engine *engine, u8 mode); |
154 | static int lp5523_set_engine_mode(struct lp5523_engine *engine, u8 mode); | 154 | static int lp5523_set_engine_mode(struct lp5523_engine *engine, u8 mode); |
155 | static int lp5523_load_program(struct lp5523_engine *engine, u8 *pattern); | 155 | static int lp5523_load_program(struct lp5523_engine *engine, const u8 *pattern); |
156 | 156 | ||
157 | static void lp5523_led_brightness_work(struct work_struct *work); | 157 | static void lp5523_led_brightness_work(struct work_struct *work); |
158 | 158 | ||
@@ -196,7 +196,7 @@ static int lp5523_configure(struct i2c_client *client) | |||
196 | u8 status; | 196 | u8 status; |
197 | 197 | ||
198 | /* one pattern per engine setting led mux start and stop addresses */ | 198 | /* one pattern per engine setting led mux start and stop addresses */ |
199 | u8 pattern[][LP5523_PROGRAM_LENGTH] = { | 199 | static const u8 pattern[][LP5523_PROGRAM_LENGTH] = { |
200 | { 0x9c, 0x30, 0x9c, 0xb0, 0x9d, 0x80, 0xd8, 0x00, 0}, | 200 | { 0x9c, 0x30, 0x9c, 0xb0, 0x9d, 0x80, 0xd8, 0x00, 0}, |
201 | { 0x9c, 0x40, 0x9c, 0xc0, 0x9d, 0x80, 0xd8, 0x00, 0}, | 201 | { 0x9c, 0x40, 0x9c, 0xc0, 0x9d, 0x80, 0xd8, 0x00, 0}, |
202 | { 0x9c, 0x50, 0x9c, 0xd0, 0x9d, 0x80, 0xd8, 0x00, 0}, | 202 | { 0x9c, 0x50, 0x9c, 0xd0, 0x9d, 0x80, 0xd8, 0x00, 0}, |
@@ -301,7 +301,7 @@ static int lp5523_load_mux(struct lp5523_engine *engine, u16 mux) | |||
301 | return ret; | 301 | return ret; |
302 | } | 302 | } |
303 | 303 | ||
304 | static int lp5523_load_program(struct lp5523_engine *engine, u8 *pattern) | 304 | static int lp5523_load_program(struct lp5523_engine *engine, const u8 *pattern) |
305 | { | 305 | { |
306 | struct lp5523_chip *chip = engine_to_lp5523(engine); | 306 | struct lp5523_chip *chip = engine_to_lp5523(engine); |
307 | struct i2c_client *client = chip->client; | 307 | struct i2c_client *client = chip->client; |