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

Commit a198359e authored by Thierry Reding's avatar Thierry Reding
Browse files

drm/tegra: sor: Rename tegra_sor_calc_config()



Use a slightly more sensible name, tegra_sor_compute_config().

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 25bb2cec
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -586,7 +586,7 @@ static int tegra_sor_compute_params(struct tegra_sor *sor,
	return false;
}

static int tegra_sor_calc_config(struct tegra_sor *sor,
static int tegra_sor_compute_config(struct tegra_sor *sor,
				    const struct drm_display_mode *mode,
				    struct tegra_sor_config *config,
				    struct drm_dp_link *link)
@@ -1245,10 +1245,9 @@ static void tegra_sor_edp_enable(struct drm_encoder *encoder)
	memset(&config, 0, sizeof(config));
	config.bits_per_pixel = output->connector.display_info.bpc * 3;

	err = tegra_sor_calc_config(sor, mode, &config, &link);
	err = tegra_sor_compute_config(sor, mode, &config, &link);
	if (err < 0)
		dev_err(sor->dev, "failed to compute link configuration: %d\n",
			err);
		dev_err(sor->dev, "failed to compute configuration: %d\n", err);

	value = tegra_sor_readl(sor, SOR_CLK_CNTRL);
	value &= ~SOR_CLK_CNTRL_DP_CLK_SEL_MASK;