aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-24 12:35:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 10:06:48 -0400
commit5959f3d7973c41a9f82e2477e8c6e881db7ad967 (patch)
tree46c4ea0cd47776a473a1f5c101baf227df4188de
parenta13f6f917600985264ff3ef2bf75a14cf353b52f (diff)
coresight: etb10: constify amba_id
amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hwtracing/coresight/coresight-etb10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c
index 05625e3a584e..56ecd7aff5eb 100644
--- a/drivers/hwtracing/coresight/coresight-etb10.c
+++ b/drivers/hwtracing/coresight/coresight-etb10.c
@@ -746,7 +746,7 @@ static const struct dev_pm_ops etb_dev_pm_ops = {
746 SET_RUNTIME_PM_OPS(etb_runtime_suspend, etb_runtime_resume, NULL) 746 SET_RUNTIME_PM_OPS(etb_runtime_suspend, etb_runtime_resume, NULL)
747}; 747};
748 748
749static struct amba_id etb_ids[] = { 749static const struct amba_id etb_ids[] = {
750 { 750 {
751 .id = 0x0003b907, 751 .id = 0x0003b907,
752 .mask = 0x0003ffff, 752 .mask = 0x0003ffff,