aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2016-12-10 08:47:36 -0500
committerKrzysztof Kozlowski <krzk@kernel.org>2016-12-29 08:40:51 -0500
commit9060a4172f7562498802f6dc60869515cda34c76 (patch)
tree9362422e6de6c9587b89a2b6680e076f892aefec
parent552146b0c20d8265f7c570251c86fc4ec44959ee (diff)
ARM: SAMSUNG: Constify array of wake irqs passed to samsung_sync_wakemask
The samsung_sync_wakemask() iterates over passed array of wake irqs but does not modify it. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r--arch/arm/plat-samsung/include/plat/wakeup-mask.h2
-rw-r--r--arch/arm/plat-samsung/wakeup-mask.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/include/plat/wakeup-mask.h b/arch/arm/plat-samsung/include/plat/wakeup-mask.h
index 43e4acd2e1c6..bbfa84b0505a 100644
--- a/arch/arm/plat-samsung/include/plat/wakeup-mask.h
+++ b/arch/arm/plat-samsung/include/plat/wakeup-mask.h
@@ -38,7 +38,7 @@ struct samsung_wakeup_mask {
38 * required to be correct before we enter sleep. 38 * required to be correct before we enter sleep.
39 */ 39 */
40extern void samsung_sync_wakemask(void __iomem *reg, 40extern void samsung_sync_wakemask(void __iomem *reg,
41 struct samsung_wakeup_mask *masks, 41 const struct samsung_wakeup_mask *masks,
42 int nr_masks); 42 int nr_masks);
43 43
44#endif /* __PLAT_WAKEUP_MASK_H */ 44#endif /* __PLAT_WAKEUP_MASK_H */
diff --git a/arch/arm/plat-samsung/wakeup-mask.c b/arch/arm/plat-samsung/wakeup-mask.c
index 20c3d9117cc2..b9de6b543330 100644
--- a/arch/arm/plat-samsung/wakeup-mask.c
+++ b/arch/arm/plat-samsung/wakeup-mask.c
@@ -20,7 +20,7 @@
20#include <plat/pm.h> 20#include <plat/pm.h>
21 21
22void samsung_sync_wakemask(void __iomem *reg, 22void samsung_sync_wakemask(void __iomem *reg,
23 struct samsung_wakeup_mask *mask, int nr_mask) 23 const struct samsung_wakeup_mask *mask, int nr_mask)
24{ 24{
25 struct irq_data *data; 25 struct irq_data *data;
26 u32 val; 26 u32 val;