ARM: SAMSUNG: Constify array of wake irqs passed to samsung_sync_wakemask
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 10 Dec 2016 13:47:36 +0000 (15:47 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 29 Dec 2016 13:40:51 +0000 (15:40 +0200)
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>
arch/arm/plat-samsung/include/plat/wakeup-mask.h
arch/arm/plat-samsung/wakeup-mask.c

index 43e4acd2e1c63a50605e5cc83750a85ab69585e3..bbfa84b0505a0171b6767a5ea0df5557b490a76b 100644 (file)
@@ -38,7 +38,7 @@ struct samsung_wakeup_mask {
  * required to be correct before we enter sleep.
  */
 extern void samsung_sync_wakemask(void __iomem *reg,
-                                 struct samsung_wakeup_mask *masks,
+                                 const struct samsung_wakeup_mask *masks,
                                  int nr_masks);
 
 #endif /* __PLAT_WAKEUP_MASK_H */
index 20c3d9117cc2539dadda086d0673dc86fe199d8a..b9de6b5433306bb88fce74f2b6efcfd977e4680c 100644 (file)
@@ -20,7 +20,7 @@
 #include <plat/pm.h>
 
 void samsung_sync_wakemask(void __iomem *reg,
-                          struct samsung_wakeup_mask *mask, int nr_mask)
+                          const struct samsung_wakeup_mask *mask, int nr_mask)
 {
        struct irq_data *data;
        u32 val;