Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tegra: sor: Rename tegra_sor_calc_config()

Use a slightly more sensible name, tegra_sor_compute_config().

Signed-off-by: Thierry Reding <treding@nvidia.com>

+6 -7
+6 -7
drivers/gpu/drm/tegra/sor.c
··· 586 586 return false; 587 587 } 588 588 589 - static int tegra_sor_calc_config(struct tegra_sor *sor, 590 - const struct drm_display_mode *mode, 591 - struct tegra_sor_config *config, 592 - struct drm_dp_link *link) 589 + static int tegra_sor_compute_config(struct tegra_sor *sor, 590 + const struct drm_display_mode *mode, 591 + struct tegra_sor_config *config, 592 + struct drm_dp_link *link) 593 593 { 594 594 const u64 f = 100000, link_rate = link->rate * 1000; 595 595 const u64 pclk = mode->clock * 1000; ··· 1245 1245 memset(&config, 0, sizeof(config)); 1246 1246 config.bits_per_pixel = output->connector.display_info.bpc * 3; 1247 1247 1248 - err = tegra_sor_calc_config(sor, mode, &config, &link); 1248 + err = tegra_sor_compute_config(sor, mode, &config, &link); 1249 1249 if (err < 0) 1250 - dev_err(sor->dev, "failed to compute link configuration: %d\n", 1251 - err); 1250 + dev_err(sor->dev, "failed to compute configuration: %d\n", err); 1252 1251 1253 1252 value = tegra_sor_readl(sor, SOR_CLK_CNTRL); 1254 1253 value &= ~SOR_CLK_CNTRL_DP_CLK_SEL_MASK;