mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
tegra: hwpm: replace dt_index with element_index
Currently, dt_index aperture spec actually holds the element index of the aperture within the IP instance. Hence, replace dt_index with element_index to better indicate its purpose. JIRA THWPM-71 Change-Id: Ic805da3281c60991e7966a80f442d84a2cfcf7cc Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2797447 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
afe35d034f
commit
da9a29418a
@@ -85,7 +85,7 @@ static int ip_readl(struct tegra_soc_hwpm *hwpm, struct hwpm_ip_inst *ip_inst,
|
||||
|
||||
err = (*ip_ops_ptr->hwpm_ip_reg_op)(ip_ops_ptr->ip_dev,
|
||||
TEGRA_SOC_HWPM_IP_REG_OP_READ,
|
||||
aperture->dt_index, offset, val);
|
||||
aperture->element_index, offset, val);
|
||||
if (err < 0) {
|
||||
tegra_hwpm_err(hwpm, "Aperture (0x%llx-0x%llx) "
|
||||
"read offset(0x%llx) failed",
|
||||
@@ -133,7 +133,7 @@ static int ip_writel(struct tegra_soc_hwpm *hwpm, struct hwpm_ip_inst *ip_inst,
|
||||
|
||||
err = (*ip_ops_ptr->hwpm_ip_reg_op)(ip_ops_ptr->ip_dev,
|
||||
TEGRA_SOC_HWPM_IP_REG_OP_WRITE,
|
||||
aperture->dt_index, offset, &val);
|
||||
aperture->element_index, offset, &val);
|
||||
if (err < 0) {
|
||||
tegra_hwpm_err(hwpm, "Aperture (0x%llx-0x%llx) "
|
||||
"write offset(0x%llx) val 0x%x failed",
|
||||
|
||||
Reference in New Issue
Block a user