Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcad90b1 authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal
Browse files

msm: vidc: reverse sort allowed_clock_tbl for shima



Clock_table entries are kept as ascending order. So always
highest clk corner is picked from clock_table during clock
calculation. So enable reverse sort for clk table entries
to pick the right corner.

Change-Id: I5adc61368aa15ae69c11a0539dcb05437bf686b4
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent f2c416e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ static int msm_vidc_load_allowed_clocks_table(

	if (res->allowed_clks_tbl) {
		d_vpr_h("allowed-clock-rates populated from platform_data\n");
		return 0;
		goto exit;
	}

	if (!of_find_property(pdev->dev.of_node,
@@ -367,7 +367,7 @@ static int msm_vidc_load_allowed_clocks_table(
		d_vpr_e("%s: failed to read allowed clocks table\n", __func__);
		return rc;
	}

exit:
	sort(res->allowed_clks_tbl, res->allowed_clks_tbl_size,
		 sizeof(*res->allowed_clks_tbl), cmp, NULL);