Commit 2ae24fb1 authored by Arvind Yadav's avatar Arvind Yadav Committed by Matthias Brugger

soc: mtk-pmic-wrap: make of_device_ids const.

of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: default avatarChen Zhong <chen.zhong@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 3b99ab7d
...@@ -1067,7 +1067,7 @@ static const struct pmic_wrapper_type pwrap_mt2701 = { ...@@ -1067,7 +1067,7 @@ static const struct pmic_wrapper_type pwrap_mt2701 = {
.init_soc_specific = pwrap_mt2701_init_soc_specific, .init_soc_specific = pwrap_mt2701_init_soc_specific,
}; };
static struct pmic_wrapper_type pwrap_mt8135 = { static const struct pmic_wrapper_type pwrap_mt8135 = {
.regs = mt8135_regs, .regs = mt8135_regs,
.type = PWRAP_MT8135, .type = PWRAP_MT8135,
.arb_en_all = 0x1ff, .arb_en_all = 0x1ff,
...@@ -1079,7 +1079,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { ...@@ -1079,7 +1079,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = {
.init_soc_specific = pwrap_mt8135_init_soc_specific, .init_soc_specific = pwrap_mt8135_init_soc_specific,
}; };
static struct pmic_wrapper_type pwrap_mt8173 = { static const struct pmic_wrapper_type pwrap_mt8173 = {
.regs = mt8173_regs, .regs = mt8173_regs,
.type = PWRAP_MT8173, .type = PWRAP_MT8173,
.arb_en_all = 0x3f, .arb_en_all = 0x3f,
...@@ -1091,7 +1091,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { ...@@ -1091,7 +1091,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = {
.init_soc_specific = pwrap_mt8173_init_soc_specific, .init_soc_specific = pwrap_mt8173_init_soc_specific,
}; };
static struct of_device_id of_pwrap_match_tbl[] = { static const struct of_device_id of_pwrap_match_tbl[] = {
{ {
.compatible = "mediatek,mt2701-pwrap", .compatible = "mediatek,mt2701-pwrap",
.data = &pwrap_mt2701, .data = &pwrap_mt2701,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment