@@ -2304,8 +2304,7 @@ static int phy_pipe_clk_register(struct qmp_combo *qmp, struct device_node *np)
2304
2304
* for DP pixel clock
2305
2305
*
2306
2306
*/
2307
- static int qcom_qmp_dp_pixel_clk_determine_rate (struct clk_hw * hw ,
2308
- struct clk_rate_request * req )
2307
+ static int qmp_dp_pixel_clk_determine_rate (struct clk_hw * hw , struct clk_rate_request * req )
2309
2308
{
2310
2309
switch (req -> rate ) {
2311
2310
case 1620000000UL / 2 :
@@ -2317,8 +2316,7 @@ static int qcom_qmp_dp_pixel_clk_determine_rate(struct clk_hw *hw,
2317
2316
}
2318
2317
}
2319
2318
2320
- static unsigned long
2321
- qcom_qmp_dp_pixel_clk_recalc_rate (struct clk_hw * hw , unsigned long parent_rate )
2319
+ static unsigned long qmp_dp_pixel_clk_recalc_rate (struct clk_hw * hw , unsigned long parent_rate )
2322
2320
{
2323
2321
const struct qmp_combo * qmp ;
2324
2322
const struct phy_configure_opts_dp * dp_opts ;
@@ -2340,13 +2338,12 @@ qcom_qmp_dp_pixel_clk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
2340
2338
}
2341
2339
}
2342
2340
2343
- static const struct clk_ops qcom_qmp_dp_pixel_clk_ops = {
2344
- .determine_rate = qcom_qmp_dp_pixel_clk_determine_rate ,
2345
- .recalc_rate = qcom_qmp_dp_pixel_clk_recalc_rate ,
2341
+ static const struct clk_ops qmp_dp_pixel_clk_ops = {
2342
+ .determine_rate = qmp_dp_pixel_clk_determine_rate ,
2343
+ .recalc_rate = qmp_dp_pixel_clk_recalc_rate ,
2346
2344
};
2347
2345
2348
- static int qcom_qmp_dp_link_clk_determine_rate (struct clk_hw * hw ,
2349
- struct clk_rate_request * req )
2346
+ static int qmp_dp_link_clk_determine_rate (struct clk_hw * hw , struct clk_rate_request * req )
2350
2347
{
2351
2348
switch (req -> rate ) {
2352
2349
case 162000000 :
@@ -2359,8 +2356,7 @@ static int qcom_qmp_dp_link_clk_determine_rate(struct clk_hw *hw,
2359
2356
}
2360
2357
}
2361
2358
2362
- static unsigned long
2363
- qcom_qmp_dp_link_clk_recalc_rate (struct clk_hw * hw , unsigned long parent_rate )
2359
+ static unsigned long qmp_dp_link_clk_recalc_rate (struct clk_hw * hw , unsigned long parent_rate )
2364
2360
{
2365
2361
const struct qmp_combo * qmp ;
2366
2362
const struct phy_configure_opts_dp * dp_opts ;
@@ -2379,13 +2375,12 @@ qcom_qmp_dp_link_clk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
2379
2375
}
2380
2376
}
2381
2377
2382
- static const struct clk_ops qcom_qmp_dp_link_clk_ops = {
2383
- .determine_rate = qcom_qmp_dp_link_clk_determine_rate ,
2384
- .recalc_rate = qcom_qmp_dp_link_clk_recalc_rate ,
2378
+ static const struct clk_ops qmp_dp_link_clk_ops = {
2379
+ .determine_rate = qmp_dp_link_clk_determine_rate ,
2380
+ .recalc_rate = qmp_dp_link_clk_recalc_rate ,
2385
2381
};
2386
2382
2387
- static struct clk_hw *
2388
- qcom_qmp_dp_clks_hw_get (struct of_phandle_args * clkspec , void * data )
2383
+ static struct clk_hw * qmp_dp_clks_hw_get (struct of_phandle_args * clkspec , void * data )
2389
2384
{
2390
2385
struct qmp_combo * qmp = data ;
2391
2386
unsigned int idx = clkspec -> args [0 ];
@@ -2408,15 +2403,15 @@ static int phy_dp_clks_register(struct qmp_combo *qmp, struct device_node *np)
2408
2403
int ret ;
2409
2404
2410
2405
snprintf (name , sizeof (name ), "%s::link_clk" , dev_name (qmp -> dev ));
2411
- init .ops = & qcom_qmp_dp_link_clk_ops ;
2406
+ init .ops = & qmp_dp_link_clk_ops ;
2412
2407
init .name = name ;
2413
2408
qmp -> dp_link_hw .init = & init ;
2414
2409
ret = devm_clk_hw_register (qmp -> dev , & qmp -> dp_link_hw );
2415
2410
if (ret )
2416
2411
return ret ;
2417
2412
2418
2413
snprintf (name , sizeof (name ), "%s::vco_div_clk" , dev_name (qmp -> dev ));
2419
- init .ops = & qcom_qmp_dp_pixel_clk_ops ;
2414
+ init .ops = & qmp_dp_pixel_clk_ops ;
2420
2415
init .name = name ;
2421
2416
qmp -> dp_pixel_hw .init = & init ;
2422
2417
ret = devm_clk_hw_register (qmp -> dev , & qmp -> dp_pixel_hw );
@@ -2452,7 +2447,7 @@ static int qmp_combo_register_clocks(struct qmp_combo *qmp, struct device_node *
2452
2447
if (ret )
2453
2448
return ret ;
2454
2449
2455
- ret = of_clk_add_hw_provider (dp_np , qcom_qmp_dp_clks_hw_get , qmp );
2450
+ ret = of_clk_add_hw_provider (dp_np , qmp_dp_clks_hw_get , qmp );
2456
2451
if (ret )
2457
2452
return ret ;
2458
2453
0 commit comments