@@ -226,19 +226,19 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
226
226
.item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
227
227
228
228
static 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" };
230
230
231
231
static const struct hdmi_platform_config hdmi_tx_8960_config = {
232
232
HDMI_CFG (pwr_reg , 8960 ),
233
- HDMI_CFG (hpd_clk , 8960 ),
233
+ HDMI_CFG (pwr_clk , 8960 ),
234
234
};
235
235
236
236
static 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" };
238
238
239
239
static const struct hdmi_platform_config hdmi_tx_8974_config = {
240
240
HDMI_CFG (pwr_reg , 8 x74 ),
241
- HDMI_CFG (hpd_clk , 8 x74 ),
241
+ HDMI_CFG (pwr_clk , 8 x74 ),
242
242
};
243
243
244
244
static 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)
333
333
if (ret )
334
334
return dev_err_probe (dev , ret , "failed to get pwr regulators\n" );
335
335
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 ]),
339
339
GFP_KERNEL );
340
- if (!hdmi -> hpd_clks )
340
+ if (!hdmi -> pwr_clks )
341
341
return - ENOMEM ;
342
342
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 ];
345
345
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 );
347
347
if (ret )
348
348
return ret ;
349
349
@@ -401,7 +401,7 @@ static int msm_hdmi_runtime_suspend(struct device *dev)
401
401
struct hdmi * hdmi = dev_get_drvdata (dev );
402
402
const struct hdmi_platform_config * config = hdmi -> config ;
403
403
404
- clk_bulk_disable_unprepare (config -> hpd_clk_cnt , hdmi -> hpd_clks );
404
+ clk_bulk_disable_unprepare (config -> pwr_clk_cnt , hdmi -> pwr_clks );
405
405
406
406
pinctrl_pm_select_sleep_state (dev );
407
407
@@ -424,7 +424,7 @@ static int msm_hdmi_runtime_resume(struct device *dev)
424
424
if (ret )
425
425
goto fail ;
426
426
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 );
428
428
if (ret )
429
429
goto fail ;
430
430
0 commit comments