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>
This commit is contained in:
parent
a03e7cd33d
commit
4a959e598e
|
@ -57,7 +57,7 @@ struct s6e63m0 {
|
|||
struct lcd_platform_data *lcd_pd;
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_PANEL_CONDITION_SET[] = {
|
||||
static const unsigned short seq_panel_condition_set[] = {
|
||||
0xF8, 0x01,
|
||||
DATA_ONLY, 0x27,
|
||||
DATA_ONLY, 0x27,
|
||||
|
@ -76,7 +76,7 @@ static const unsigned short SEQ_PANEL_CONDITION_SET[] = {
|
|||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_DISPLAY_CONDITION_SET[] = {
|
||||
static const unsigned short seq_display_condition_set[] = {
|
||||
0xf2, 0x02,
|
||||
DATA_ONLY, 0x03,
|
||||
DATA_ONLY, 0x1c,
|
||||
|
@ -90,7 +90,7 @@ static const unsigned short SEQ_DISPLAY_CONDITION_SET[] = {
|
|||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_GAMMA_SETTING[] = {
|
||||
static const unsigned short seq_gamma_setting[] = {
|
||||
0xfa, 0x00,
|
||||
DATA_ONLY, 0x18,
|
||||
DATA_ONLY, 0x08,
|
||||
|
@ -119,7 +119,7 @@ static const unsigned short SEQ_GAMMA_SETTING[] = {
|
|||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_ETC_CONDITION_SET[] = {
|
||||
static const unsigned short seq_etc_condition_set[] = {
|
||||
0xf6, 0x00,
|
||||
DATA_ONLY, 0x8c,
|
||||
DATA_ONLY, 0x07,
|
||||
|
@ -318,47 +318,47 @@ static const unsigned short SEQ_ETC_CONDITION_SET[] = {
|
|||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_ACL_ON[] = {
|
||||
static const unsigned short seq_acl_on[] = {
|
||||
/* ACL on */
|
||||
0xc0, 0x01,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_ACL_OFF[] = {
|
||||
static const unsigned short seq_acl_off[] = {
|
||||
/* ACL off */
|
||||
0xc0, 0x00,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_ELVSS_ON[] = {
|
||||
static const unsigned short seq_elvss_on[] = {
|
||||
/* ELVSS on */
|
||||
0xb1, 0x0b,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_ELVSS_OFF[] = {
|
||||
static const unsigned short seq_elvss_off[] = {
|
||||
/* ELVSS off */
|
||||
0xb1, 0x0a,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_STAND_BY_OFF[] = {
|
||||
static const unsigned short seq_stand_by_off[] = {
|
||||
0x11, COMMAND_ONLY,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_STAND_BY_ON[] = {
|
||||
static const unsigned short seq_stand_by_on[] = {
|
||||
0x10, COMMAND_ONLY,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
};
|
||||
|
||||
static const unsigned short SEQ_DISPLAY_ON[] = {
|
||||
static const unsigned short seq_display_on[] = {
|
||||
0x29, COMMAND_ONLY,
|
||||
|
||||
ENDDEF, 0x0000
|
||||
|
@ -457,12 +457,12 @@ static int s6e63m0_ldi_init(struct s6e63m0 *lcd)
|
|||
{
|
||||
int ret, i;
|
||||
const unsigned short *init_seq[] = {
|
||||
SEQ_PANEL_CONDITION_SET,
|
||||
SEQ_DISPLAY_CONDITION_SET,
|
||||
SEQ_GAMMA_SETTING,
|
||||
SEQ_ETC_CONDITION_SET,
|
||||
SEQ_ACL_ON,
|
||||
SEQ_ELVSS_ON,
|
||||
seq_panel_condition_set,
|
||||
seq_display_condition_set,
|
||||
seq_gamma_setting,
|
||||
seq_etc_condition_set,
|
||||
seq_acl_on,
|
||||
seq_elvss_on,
|
||||
};
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(init_seq); i++) {
|
||||
|
@ -478,8 +478,8 @@ static int s6e63m0_ldi_enable(struct s6e63m0 *lcd)
|
|||
{
|
||||
int ret = 0, i;
|
||||
const unsigned short *enable_seq[] = {
|
||||
SEQ_STAND_BY_OFF,
|
||||
SEQ_DISPLAY_ON,
|
||||
seq_stand_by_off,
|
||||
seq_display_on,
|
||||
};
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(enable_seq); i++) {
|
||||
|
@ -495,7 +495,7 @@ static int s6e63m0_ldi_disable(struct s6e63m0 *lcd)
|
|||
{
|
||||
int ret;
|
||||
|
||||
ret = s6e63m0_panel_send_sequence(lcd, SEQ_STAND_BY_ON);
|
||||
ret = s6e63m0_panel_send_sequence(lcd, seq_stand_by_on);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue