Skip to content

Commit b71bf1e

Browse files
jhovoldvinodkoul
authored andcommitted
phy: qcom-qmp-combo: clean up DP clock callbacks
Clean up the DP clock callbacks somewhat by dropping the redundant "qcom" prefix and removing line breaks after type specifiers. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent ce51f7a commit b71bf1e

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

drivers/phy/qualcomm/phy-qcom-qmp-combo.c

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,8 +2304,7 @@ static int phy_pipe_clk_register(struct qmp_combo *qmp, struct device_node *np)
23042304
* for DP pixel clock
23052305
*
23062306
*/
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)
23092308
{
23102309
switch (req->rate) {
23112310
case 1620000000UL / 2:
@@ -2317,8 +2316,7 @@ static int qcom_qmp_dp_pixel_clk_determine_rate(struct clk_hw *hw,
23172316
}
23182317
}
23192318

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)
23222320
{
23232321
const struct qmp_combo *qmp;
23242322
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)
23402338
}
23412339
}
23422340

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,
23462344
};
23472345

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)
23502347
{
23512348
switch (req->rate) {
23522349
case 162000000:
@@ -2359,8 +2356,7 @@ static int qcom_qmp_dp_link_clk_determine_rate(struct clk_hw *hw,
23592356
}
23602357
}
23612358

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)
23642360
{
23652361
const struct qmp_combo *qmp;
23662362
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)
23792375
}
23802376
}
23812377

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,
23852381
};
23862382

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)
23892384
{
23902385
struct qmp_combo *qmp = data;
23912386
unsigned int idx = clkspec->args[0];
@@ -2408,15 +2403,15 @@ static int phy_dp_clks_register(struct qmp_combo *qmp, struct device_node *np)
24082403
int ret;
24092404

24102405
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;
24122407
init.name = name;
24132408
qmp->dp_link_hw.init = &init;
24142409
ret = devm_clk_hw_register(qmp->dev, &qmp->dp_link_hw);
24152410
if (ret)
24162411
return ret;
24172412

24182413
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;
24202415
init.name = name;
24212416
qmp->dp_pixel_hw.init = &init;
24222417
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 *
24522447
if (ret)
24532448
return ret;
24542449

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);
24562451
if (ret)
24572452
return ret;
24582453

0 commit comments

Comments
 (0)