Skip to content

Commit

Permalink
msm: HTC: m7: Fix Sharp Renesas panel init
Browse files Browse the repository at this point in the history
The panel on commands from PANEL_ID_DLXJ_SHARP_RENESAS were errantly
being used for PANEL_ID_M7_SHARP_RENESAS due to a bad if/else block.

Change-Id: I8b4cfc1f0a0bc96accb31018f69cd8372bc95851
  • Loading branch information
mdmower committed May 6, 2015
1 parent f21479e commit 648a20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/htc/m7/display/mipi_m7.c
Expand Up @@ -1121,10 +1121,10 @@ static void m7_set_backlight(struct msm_fb_data_type *mfd)

static void sharp_renesas_panel_init(void)
{
if (PANEL_ID_DLXJ_SHARP_RENESAS) {
if (panel_type == PANEL_ID_DLXJ_SHARP_RENESAS) {
panel_on_cmds = sharp_panel_on_cmds;
panel_on_cmds_count = ARRAY_SIZE(sharp_panel_on_cmds);
} else if (PANEL_ID_M7_SHARP_RENESAS) {
} else if (panel_type == PANEL_ID_M7_SHARP_RENESAS) {
panel_on_cmds = m7_sharp_panel_on_cmds;
panel_on_cmds_count = ARRAY_SIZE(m7_sharp_panel_on_cmds);
}
Expand Down

0 comments on commit 648a20c

Please sign in to comment.