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