@@ -226,19 +226,19 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
226226 .item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
227227
228228static const char * const pwr_reg_names_8960 [] = {"core-vdda" };
229- static const char * const hpd_clk_names_8960 [] = {"core" , "master_iface" , "slave_iface" };
229+ static const char * const pwr_clk_names_8960 [] = {"core" , "master_iface" , "slave_iface" };
230230
231231static const struct hdmi_platform_config hdmi_tx_8960_config = {
232232 HDMI_CFG (pwr_reg , 8960 ),
233- HDMI_CFG (hpd_clk , 8960 ),
233+ HDMI_CFG (pwr_clk , 8960 ),
234234};
235235
236236static const char * const pwr_reg_names_8x74 [] = {"core-vdda" , "core-vcc" };
237- static const char * const hpd_clk_names_8x74 [] = {"iface" , "core" , "mdp_core" , "alt_iface" };
237+ static const char * const pwr_clk_names_8x74 [] = {"iface" , "core" , "mdp_core" , "alt_iface" };
238238
239239static const struct hdmi_platform_config hdmi_tx_8974_config = {
240240 HDMI_CFG (pwr_reg , 8 x74 ),
241- HDMI_CFG (hpd_clk , 8 x74 ),
241+ HDMI_CFG (pwr_clk , 8 x74 ),
242242};
243243
244244static int msm_hdmi_bind (struct device * dev , struct device * master , void * data )
@@ -333,17 +333,17 @@ static int msm_hdmi_dev_probe(struct platform_device *pdev)
333333 if (ret )
334334 return dev_err_probe (dev , ret , "failed to get pwr regulators\n" );
335335
336- hdmi -> hpd_clks = devm_kcalloc (& pdev -> dev ,
337- config -> hpd_clk_cnt ,
338- sizeof (hdmi -> hpd_clks [0 ]),
336+ hdmi -> pwr_clks = devm_kcalloc (& pdev -> dev ,
337+ config -> pwr_clk_cnt ,
338+ sizeof (hdmi -> pwr_clks [0 ]),
339339 GFP_KERNEL );
340- if (!hdmi -> hpd_clks )
340+ if (!hdmi -> pwr_clks )
341341 return - ENOMEM ;
342342
343- for (i = 0 ; i < config -> hpd_clk_cnt ; i ++ )
344- hdmi -> hpd_clks [i ].id = config -> hpd_clk_names [i ];
343+ for (i = 0 ; i < config -> pwr_clk_cnt ; i ++ )
344+ hdmi -> pwr_clks [i ].id = config -> pwr_clk_names [i ];
345345
346- ret = devm_clk_bulk_get (& pdev -> dev , config -> hpd_clk_cnt , hdmi -> hpd_clks );
346+ ret = devm_clk_bulk_get (& pdev -> dev , config -> pwr_clk_cnt , hdmi -> pwr_clks );
347347 if (ret )
348348 return ret ;
349349
@@ -401,7 +401,7 @@ static int msm_hdmi_runtime_suspend(struct device *dev)
401401 struct hdmi * hdmi = dev_get_drvdata (dev );
402402 const struct hdmi_platform_config * config = hdmi -> config ;
403403
404- clk_bulk_disable_unprepare (config -> hpd_clk_cnt , hdmi -> hpd_clks );
404+ clk_bulk_disable_unprepare (config -> pwr_clk_cnt , hdmi -> pwr_clks );
405405
406406 pinctrl_pm_select_sleep_state (dev );
407407
@@ -424,7 +424,7 @@ static int msm_hdmi_runtime_resume(struct device *dev)
424424 if (ret )
425425 goto fail ;
426426
427- ret = clk_bulk_prepare_enable (config -> hpd_clk_cnt , hdmi -> hpd_clks );
427+ ret = clk_bulk_prepare_enable (config -> pwr_clk_cnt , hdmi -> pwr_clks );
428428 if (ret )
429429 goto fail ;
430430
0 commit comments