Revert "lcd: fix lcd_extern device probe mistake [1/1]"

This reverts commit 5802fddc1a48cc97aab51d7e394f80b7fd0ea02f.
This commit is contained in:
chunlong.cao
2021-08-10 18:46:40 +08:00
committed by Chris
parent 9aba57f769
commit d93a456063

View File

@@ -567,7 +567,8 @@ int lcd_power_load_from_dts(struct lcd_config_s *pconf,
lcd_cpu_gpio_probe(index);
break;
case LCD_POWER_TYPE_EXTERN:
lcd_extern_index_lut_add(index);
if (pconf->extern_index == 0xff)
pconf->extern_index = index;
break;
default:
break;
@@ -639,7 +640,7 @@ int lcd_power_load_from_unifykey(struct lcd_config_s *pconf,
lcd_cpu_gpio_probe(index);
break;
case LCD_POWER_TYPE_EXTERN:
lcd_extern_index_lut_add(index);
pconf->extern_index = index;
break;
case LCD_POWER_TYPE_CLK_SS:
temp = pconf->lcd_power->power_on_step[i].value;
@@ -696,7 +697,8 @@ int lcd_power_load_from_unifykey(struct lcd_config_s *pconf,
lcd_cpu_gpio_probe(index);
break;
case LCD_POWER_TYPE_EXTERN:
lcd_extern_index_lut_add(index);
if (pconf->extern_index == 0xff)
pconf->extern_index = index;
break;
default:
break;