diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:43:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:21 -0500 |
commit | 4a959e598ebb20caeec0b5e5c4455597f4836661 (patch) | |
tree | d933fe8340cc02a4c2bc492b05fc0aa97ea1513f /drivers/video/backlight/s6e63m0.c | |
parent | a03e7cd33d2bbfc8decc481008e43047d403b635 (diff) |
backlight: s6e63m0: use lowercase names of structs
Lowercase names of structs should be used, because they are
not preprocessor macros.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/s6e63m0.c')
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 3e1c1135f6df..cae140d83f3c 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c | |||
@@ -57,7 +57,7 @@ struct s6e63m0 { | |||
57 | struct lcd_platform_data *lcd_pd; | 57 | struct lcd_platform_data *lcd_pd; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static const unsigned short SEQ_PANEL_CONDITION_SET[] = { | 60 | static const unsigned short seq_panel_condition_set[] = { |
61 | 0xF8, 0x01, | 61 | 0xF8, 0x01, |
62 | DATA_ONLY, 0x27, | 62 | DATA_ONLY, 0x27, |
63 | DATA_ONLY, 0x27, | 63 | DATA_ONLY, 0x27, |
@@ -76,7 +76,7 @@ static const unsigned short SEQ_PANEL_CONDITION_SET[] = { | |||
76 | ENDDEF, 0x0000 | 76 | ENDDEF, 0x0000 |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static const unsigned short SEQ_DISPLAY_CONDITION_SET[] = { | 79 | static const unsigned short seq_display_condition_set[] = { |
80 | 0xf2, 0x02, | 80 | 0xf2, 0x02, |
81 | DATA_ONLY, 0x03, | 81 | DATA_ONLY, 0x03, |
82 | DATA_ONLY, 0x1c, | 82 | DATA_ONLY, 0x1c, |
@@ -90,7 +90,7 @@ static const unsigned short SEQ_DISPLAY_CONDITION_SET[] = { | |||
90 | ENDDEF, 0x0000 | 90 | ENDDEF, 0x0000 |
91 | }; | 91 | }; |
92 | 92 | ||
93 | static const unsigned short SEQ_GAMMA_SETTING[] = { | 93 | static const unsigned short seq_gamma_setting[] = { |
94 | 0xfa, 0x00, | 94 | 0xfa, 0x00, |
95 | DATA_ONLY, 0x18, | 95 | DATA_ONLY, 0x18, |
96 | DATA_ONLY, 0x08, | 96 | DATA_ONLY, 0x08, |
@@ -119,7 +119,7 @@ static const unsigned short SEQ_GAMMA_SETTING[] = { | |||
119 | ENDDEF, 0x0000 | 119 | ENDDEF, 0x0000 |
120 | }; | 120 | }; |
121 | 121 | ||
122 | static const unsigned short SEQ_ETC_CONDITION_SET[] = { | 122 | static const unsigned short seq_etc_condition_set[] = { |
123 | 0xf6, 0x00, | 123 | 0xf6, 0x00, |
124 | DATA_ONLY, 0x8c, | 124 | DATA_ONLY, 0x8c, |
125 | DATA_ONLY, 0x07, | 125 | DATA_ONLY, 0x07, |
@@ -318,47 +318,47 @@ static const unsigned short SEQ_ETC_CONDITION_SET[] = { | |||
318 | ENDDEF, 0x0000 | 318 | ENDDEF, 0x0000 |
319 | }; | 319 | }; |
320 | 320 | ||
321 | static const unsigned short SEQ_ACL_ON[] = { | 321 | static const unsigned short seq_acl_on[] = { |
322 | /* ACL on */ | 322 | /* ACL on */ |
323 | 0xc0, 0x01, | 323 | 0xc0, 0x01, |
324 | 324 | ||
325 | ENDDEF, 0x0000 | 325 | ENDDEF, 0x0000 |
326 | }; | 326 | }; |
327 | 327 | ||
328 | static const unsigned short SEQ_ACL_OFF[] = { | 328 | static const unsigned short seq_acl_off[] = { |
329 | /* ACL off */ | 329 | /* ACL off */ |
330 | 0xc0, 0x00, | 330 | 0xc0, 0x00, |
331 | 331 | ||
332 | ENDDEF, 0x0000 | 332 | ENDDEF, 0x0000 |
333 | }; | 333 | }; |
334 | 334 | ||
335 | static const unsigned short SEQ_ELVSS_ON[] = { | 335 | static const unsigned short seq_elvss_on[] = { |
336 | /* ELVSS on */ | 336 | /* ELVSS on */ |
337 | 0xb1, 0x0b, | 337 | 0xb1, 0x0b, |
338 | 338 | ||
339 | ENDDEF, 0x0000 | 339 | ENDDEF, 0x0000 |
340 | }; | 340 | }; |
341 | 341 | ||
342 | static const unsigned short SEQ_ELVSS_OFF[] = { | 342 | static const unsigned short seq_elvss_off[] = { |
343 | /* ELVSS off */ | 343 | /* ELVSS off */ |
344 | 0xb1, 0x0a, | 344 | 0xb1, 0x0a, |
345 | 345 | ||
346 | ENDDEF, 0x0000 | 346 | ENDDEF, 0x0000 |
347 | }; | 347 | }; |
348 | 348 | ||
349 | static const unsigned short SEQ_STAND_BY_OFF[] = { | 349 | static const unsigned short seq_stand_by_off[] = { |
350 | 0x11, COMMAND_ONLY, | 350 | 0x11, COMMAND_ONLY, |
351 | 351 | ||
352 | ENDDEF, 0x0000 | 352 | ENDDEF, 0x0000 |
353 | }; | 353 | }; |
354 | 354 | ||
355 | static const unsigned short SEQ_STAND_BY_ON[] = { | 355 | static const unsigned short seq_stand_by_on[] = { |
356 | 0x10, COMMAND_ONLY, | 356 | 0x10, COMMAND_ONLY, |
357 | 357 | ||
358 | ENDDEF, 0x0000 | 358 | ENDDEF, 0x0000 |
359 | }; | 359 | }; |
360 | 360 | ||
361 | static const unsigned short SEQ_DISPLAY_ON[] = { | 361 | static const unsigned short seq_display_on[] = { |
362 | 0x29, COMMAND_ONLY, | 362 | 0x29, COMMAND_ONLY, |
363 | 363 | ||
364 | ENDDEF, 0x0000 | 364 | ENDDEF, 0x0000 |
@@ -457,12 +457,12 @@ static int s6e63m0_ldi_init(struct s6e63m0 *lcd) | |||
457 | { | 457 | { |
458 | int ret, i; | 458 | int ret, i; |
459 | const unsigned short *init_seq[] = { | 459 | const unsigned short *init_seq[] = { |
460 | SEQ_PANEL_CONDITION_SET, | 460 | seq_panel_condition_set, |
461 | SEQ_DISPLAY_CONDITION_SET, | 461 | seq_display_condition_set, |
462 | SEQ_GAMMA_SETTING, | 462 | seq_gamma_setting, |
463 | SEQ_ETC_CONDITION_SET, | 463 | seq_etc_condition_set, |
464 | SEQ_ACL_ON, | 464 | seq_acl_on, |
465 | SEQ_ELVSS_ON, | 465 | seq_elvss_on, |
466 | }; | 466 | }; |
467 | 467 | ||
468 | for (i = 0; i < ARRAY_SIZE(init_seq); i++) { | 468 | for (i = 0; i < ARRAY_SIZE(init_seq); i++) { |
@@ -478,8 +478,8 @@ static int s6e63m0_ldi_enable(struct s6e63m0 *lcd) | |||
478 | { | 478 | { |
479 | int ret = 0, i; | 479 | int ret = 0, i; |
480 | const unsigned short *enable_seq[] = { | 480 | const unsigned short *enable_seq[] = { |
481 | SEQ_STAND_BY_OFF, | 481 | seq_stand_by_off, |
482 | SEQ_DISPLAY_ON, | 482 | seq_display_on, |
483 | }; | 483 | }; |
484 | 484 | ||
485 | for (i = 0; i < ARRAY_SIZE(enable_seq); i++) { | 485 | for (i = 0; i < ARRAY_SIZE(enable_seq); i++) { |
@@ -495,7 +495,7 @@ static int s6e63m0_ldi_disable(struct s6e63m0 *lcd) | |||
495 | { | 495 | { |
496 | int ret; | 496 | int ret; |
497 | 497 | ||
498 | ret = s6e63m0_panel_send_sequence(lcd, SEQ_STAND_BY_ON); | 498 | ret = s6e63m0_panel_send_sequence(lcd, seq_stand_by_on); |
499 | 499 | ||
500 | return ret; | 500 | return ret; |
501 | } | 501 | } |