msm: iommu: Use more consistent naming in platform data

Rename all the IOMMU platform devices so that the names are
more consistent with the rest of the codebase.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko 2010-11-12 19:29:49 -08:00 коммит произвёл Daniel Walker
Родитель c4bd2eebee
Коммит 12943325cd
1 изменённых файлов: 68 добавлений и 68 удалений

Просмотреть файл

@ -259,55 +259,55 @@ static struct platform_device msm_root_iommu_dev = {
.id = -1, .id = -1,
}; };
static struct msm_iommu_dev jpegd_smmu = { static struct msm_iommu_dev jpegd_iommu = {
.name = "jpegd", .name = "jpegd",
.clk_rate = -1 .clk_rate = -1
}; };
static struct msm_iommu_dev vpe_smmu = { static struct msm_iommu_dev vpe_iommu = {
.name = "vpe" .name = "vpe"
}; };
static struct msm_iommu_dev mdp0_smmu = { static struct msm_iommu_dev mdp0_iommu = {
.name = "mdp0" .name = "mdp0"
}; };
static struct msm_iommu_dev mdp1_smmu = { static struct msm_iommu_dev mdp1_iommu = {
.name = "mdp1" .name = "mdp1"
}; };
static struct msm_iommu_dev rot_smmu = { static struct msm_iommu_dev rot_iommu = {
.name = "rot" .name = "rot"
}; };
static struct msm_iommu_dev ijpeg_smmu = { static struct msm_iommu_dev ijpeg_iommu = {
.name = "ijpeg" .name = "ijpeg"
}; };
static struct msm_iommu_dev vfe_smmu = { static struct msm_iommu_dev vfe_iommu = {
.name = "vfe", .name = "vfe",
.clk_rate = -1 .clk_rate = -1
}; };
static struct msm_iommu_dev vcodec_a_smmu = { static struct msm_iommu_dev vcodec_a_iommu = {
.name = "vcodec_a" .name = "vcodec_a"
}; };
static struct msm_iommu_dev vcodec_b_smmu = { static struct msm_iommu_dev vcodec_b_iommu = {
.name = "vcodec_b" .name = "vcodec_b"
}; };
static struct msm_iommu_dev gfx3d_smmu = { static struct msm_iommu_dev gfx3d_iommu = {
.name = "gfx3d", .name = "gfx3d",
.clk_rate = 27000000 .clk_rate = 27000000
}; };
static struct msm_iommu_dev gfx2d0_smmu = { static struct msm_iommu_dev gfx2d0_iommu = {
.name = "gfx2d0", .name = "gfx2d0",
.clk_rate = 27000000 .clk_rate = 27000000
}; };
static struct platform_device msm_device_smmu_jpegd = { static struct platform_device msm_device_iommu_jpegd = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 0, .id = 0,
.dev = { .dev = {
@ -317,7 +317,7 @@ static struct platform_device msm_device_smmu_jpegd = {
.resource = msm_iommu_jpegd_resources, .resource = msm_iommu_jpegd_resources,
}; };
static struct platform_device msm_device_smmu_vpe = { static struct platform_device msm_device_iommu_vpe = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 1, .id = 1,
.dev = { .dev = {
@ -327,7 +327,7 @@ static struct platform_device msm_device_smmu_vpe = {
.resource = msm_iommu_vpe_resources, .resource = msm_iommu_vpe_resources,
}; };
static struct platform_device msm_device_smmu_mdp0 = { static struct platform_device msm_device_iommu_mdp0 = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 2, .id = 2,
.dev = { .dev = {
@ -337,7 +337,7 @@ static struct platform_device msm_device_smmu_mdp0 = {
.resource = msm_iommu_mdp0_resources, .resource = msm_iommu_mdp0_resources,
}; };
static struct platform_device msm_device_smmu_mdp1 = { static struct platform_device msm_device_iommu_mdp1 = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 3, .id = 3,
.dev = { .dev = {
@ -347,7 +347,7 @@ static struct platform_device msm_device_smmu_mdp1 = {
.resource = msm_iommu_mdp1_resources, .resource = msm_iommu_mdp1_resources,
}; };
static struct platform_device msm_device_smmu_rot = { static struct platform_device msm_device_iommu_rot = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 4, .id = 4,
.dev = { .dev = {
@ -357,7 +357,7 @@ static struct platform_device msm_device_smmu_rot = {
.resource = msm_iommu_rot_resources, .resource = msm_iommu_rot_resources,
}; };
static struct platform_device msm_device_smmu_ijpeg = { static struct platform_device msm_device_iommu_ijpeg = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 5, .id = 5,
.dev = { .dev = {
@ -367,7 +367,7 @@ static struct platform_device msm_device_smmu_ijpeg = {
.resource = msm_iommu_ijpeg_resources, .resource = msm_iommu_ijpeg_resources,
}; };
static struct platform_device msm_device_smmu_vfe = { static struct platform_device msm_device_iommu_vfe = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 6, .id = 6,
.dev = { .dev = {
@ -377,7 +377,7 @@ static struct platform_device msm_device_smmu_vfe = {
.resource = msm_iommu_vfe_resources, .resource = msm_iommu_vfe_resources,
}; };
static struct platform_device msm_device_smmu_vcodec_a = { static struct platform_device msm_device_iommu_vcodec_a = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 7, .id = 7,
.dev = { .dev = {
@ -387,7 +387,7 @@ static struct platform_device msm_device_smmu_vcodec_a = {
.resource = msm_iommu_vcodec_a_resources, .resource = msm_iommu_vcodec_a_resources,
}; };
static struct platform_device msm_device_smmu_vcodec_b = { static struct platform_device msm_device_iommu_vcodec_b = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 8, .id = 8,
.dev = { .dev = {
@ -397,7 +397,7 @@ static struct platform_device msm_device_smmu_vcodec_b = {
.resource = msm_iommu_vcodec_b_resources, .resource = msm_iommu_vcodec_b_resources,
}; };
static struct platform_device msm_device_smmu_gfx3d = { static struct platform_device msm_device_iommu_gfx3d = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 9, .id = 9,
.dev = { .dev = {
@ -407,7 +407,7 @@ static struct platform_device msm_device_smmu_gfx3d = {
.resource = msm_iommu_gfx3d_resources, .resource = msm_iommu_gfx3d_resources,
}; };
static struct platform_device msm_device_smmu_gfx2d0 = { static struct platform_device msm_device_iommu_gfx2d0 = {
.name = "msm_iommu", .name = "msm_iommu",
.id = 10, .id = 10,
.dev = { .dev = {
@ -553,7 +553,7 @@ static struct platform_device msm_device_jpegd_src_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 0, .id = 0,
.dev = { .dev = {
.parent = &msm_device_smmu_jpegd.dev, .parent = &msm_device_iommu_jpegd.dev,
}, },
}; };
@ -561,7 +561,7 @@ static struct platform_device msm_device_jpegd_dst_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 1, .id = 1,
.dev = { .dev = {
.parent = &msm_device_smmu_jpegd.dev, .parent = &msm_device_iommu_jpegd.dev,
}, },
}; };
@ -569,7 +569,7 @@ static struct platform_device msm_device_vpe_src_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 2, .id = 2,
.dev = { .dev = {
.parent = &msm_device_smmu_vpe.dev, .parent = &msm_device_iommu_vpe.dev,
}, },
}; };
@ -577,7 +577,7 @@ static struct platform_device msm_device_vpe_dst_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 3, .id = 3,
.dev = { .dev = {
.parent = &msm_device_smmu_vpe.dev, .parent = &msm_device_iommu_vpe.dev,
}, },
}; };
@ -585,7 +585,7 @@ static struct platform_device msm_device_mdp_vg1_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 4, .id = 4,
.dev = { .dev = {
.parent = &msm_device_smmu_mdp0.dev, .parent = &msm_device_iommu_mdp0.dev,
}, },
}; };
@ -593,7 +593,7 @@ static struct platform_device msm_device_mdp_rgb1_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 5, .id = 5,
.dev = { .dev = {
.parent = &msm_device_smmu_mdp0.dev, .parent = &msm_device_iommu_mdp0.dev,
}, },
}; };
@ -601,7 +601,7 @@ static struct platform_device msm_device_mdp_vg2_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 6, .id = 6,
.dev = { .dev = {
.parent = &msm_device_smmu_mdp1.dev, .parent = &msm_device_iommu_mdp1.dev,
}, },
}; };
@ -609,7 +609,7 @@ static struct platform_device msm_device_mdp_rgb2_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 7, .id = 7,
.dev = { .dev = {
.parent = &msm_device_smmu_mdp1.dev, .parent = &msm_device_iommu_mdp1.dev,
}, },
}; };
@ -617,7 +617,7 @@ static struct platform_device msm_device_rot_src_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 8, .id = 8,
.dev = { .dev = {
.parent = &msm_device_smmu_rot.dev, .parent = &msm_device_iommu_rot.dev,
}, },
}; };
@ -625,7 +625,7 @@ static struct platform_device msm_device_rot_dst_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 9, .id = 9,
.dev = { .dev = {
.parent = &msm_device_smmu_rot.dev, .parent = &msm_device_iommu_rot.dev,
}, },
}; };
@ -633,7 +633,7 @@ static struct platform_device msm_device_ijpeg_src_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 10, .id = 10,
.dev = { .dev = {
.parent = &msm_device_smmu_ijpeg.dev, .parent = &msm_device_iommu_ijpeg.dev,
}, },
}; };
@ -641,7 +641,7 @@ static struct platform_device msm_device_ijpeg_dst_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 11, .id = 11,
.dev = { .dev = {
.parent = &msm_device_smmu_ijpeg.dev, .parent = &msm_device_iommu_ijpeg.dev,
}, },
}; };
@ -649,7 +649,7 @@ static struct platform_device msm_device_vfe_imgwr_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 12, .id = 12,
.dev = { .dev = {
.parent = &msm_device_smmu_vfe.dev, .parent = &msm_device_iommu_vfe.dev,
}, },
}; };
@ -657,7 +657,7 @@ static struct platform_device msm_device_vfe_misc_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 13, .id = 13,
.dev = { .dev = {
.parent = &msm_device_smmu_vfe.dev, .parent = &msm_device_iommu_vfe.dev,
}, },
}; };
@ -665,7 +665,7 @@ static struct platform_device msm_device_vcodec_a_stream_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 14, .id = 14,
.dev = { .dev = {
.parent = &msm_device_smmu_vcodec_a.dev, .parent = &msm_device_iommu_vcodec_a.dev,
}, },
}; };
@ -673,7 +673,7 @@ static struct platform_device msm_device_vcodec_a_mm1_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 15, .id = 15,
.dev = { .dev = {
.parent = &msm_device_smmu_vcodec_a.dev, .parent = &msm_device_iommu_vcodec_a.dev,
}, },
}; };
@ -681,7 +681,7 @@ static struct platform_device msm_device_vcodec_b_mm2_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 16, .id = 16,
.dev = { .dev = {
.parent = &msm_device_smmu_vcodec_b.dev, .parent = &msm_device_iommu_vcodec_b.dev,
}, },
}; };
@ -689,7 +689,7 @@ static struct platform_device msm_device_gfx3d_rbpa_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 17, .id = 17,
.dev = { .dev = {
.parent = &msm_device_smmu_gfx3d.dev, .parent = &msm_device_iommu_gfx3d.dev,
}, },
}; };
@ -697,7 +697,7 @@ static struct platform_device msm_device_gfx3d_cpvgttc_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 18, .id = 18,
.dev = { .dev = {
.parent = &msm_device_smmu_gfx3d.dev, .parent = &msm_device_iommu_gfx3d.dev,
}, },
}; };
@ -705,7 +705,7 @@ static struct platform_device msm_device_gfx3d_smmu_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 19, .id = 19,
.dev = { .dev = {
.parent = &msm_device_smmu_gfx3d.dev, .parent = &msm_device_iommu_gfx3d.dev,
}, },
}; };
@ -713,7 +713,7 @@ static struct platform_device msm_device_gfx2d0_pixv1_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 20, .id = 20,
.dev = { .dev = {
.parent = &msm_device_smmu_gfx2d0.dev, .parent = &msm_device_iommu_gfx2d0.dev,
}, },
}; };
@ -721,36 +721,36 @@ static struct platform_device msm_device_gfx2d0_texv3_ctx = {
.name = "msm_iommu_ctx", .name = "msm_iommu_ctx",
.id = 21, .id = 21,
.dev = { .dev = {
.parent = &msm_device_smmu_gfx2d0.dev, .parent = &msm_device_iommu_gfx2d0.dev,
}, },
}; };
static struct platform_device *msm_iommu_devs[] = { static struct platform_device *msm_iommu_devs[] = {
&msm_device_smmu_jpegd, &msm_device_iommu_jpegd,
&msm_device_smmu_vpe, &msm_device_iommu_vpe,
&msm_device_smmu_mdp0, &msm_device_iommu_mdp0,
&msm_device_smmu_mdp1, &msm_device_iommu_mdp1,
&msm_device_smmu_rot, &msm_device_iommu_rot,
&msm_device_smmu_ijpeg, &msm_device_iommu_ijpeg,
&msm_device_smmu_vfe, &msm_device_iommu_vfe,
&msm_device_smmu_vcodec_a, &msm_device_iommu_vcodec_a,
&msm_device_smmu_vcodec_b, &msm_device_iommu_vcodec_b,
&msm_device_smmu_gfx3d, &msm_device_iommu_gfx3d,
&msm_device_smmu_gfx2d0, &msm_device_iommu_gfx2d0,
}; };
static struct msm_iommu_dev *msm_iommu_data[] = { static struct msm_iommu_dev *msm_iommu_data[] = {
&jpegd_smmu, &jpegd_iommu,
&vpe_smmu, &vpe_iommu,
&mdp0_smmu, &mdp0_iommu,
&mdp1_smmu, &mdp1_iommu,
&rot_smmu, &rot_iommu,
&ijpeg_smmu, &ijpeg_iommu,
&vfe_smmu, &vfe_iommu,
&vcodec_a_smmu, &vcodec_a_iommu,
&vcodec_b_smmu, &vcodec_b_iommu,
&gfx3d_smmu, &gfx3d_iommu,
&gfx2d0_smmu, &gfx2d0_iommu,
}; };
static struct platform_device *msm_iommu_ctx_devs[] = { static struct platform_device *msm_iommu_ctx_devs[] = {
@ -826,7 +826,7 @@ static int msm8x60_iommu_init(void)
ret = platform_device_register(msm_iommu_devs[i]); ret = platform_device_register(msm_iommu_devs[i]);
if (ret != 0) { if (ret != 0) {
pr_err("platform_device_register smmu failed, " pr_err("platform_device_register iommu failed, "
"i = %d\n", i); "i = %d\n", i);
goto failure_unwind; goto failure_unwind;
} }
@ -837,7 +837,7 @@ static int msm8x60_iommu_init(void)
msm_iommu_ctx_data[i], msm_iommu_ctx_data[i],
sizeof(*msm_iommu_ctx_devs[i])); sizeof(*msm_iommu_ctx_devs[i]));
if (ret != 0) { if (ret != 0) {
pr_err("platform_device_add_data smmu failed, " pr_err("platform_device_add_data iommu failed, "
"i = %d\n", i); "i = %d\n", i);
goto failure_unwind2; goto failure_unwind2;
} }