summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2016-12-10 14:47:38 +0100
committerKrzysztof Kozlowski2016-12-29 14:41:44 +0100
commitcda1a52dab50340728e46601e6c9da9fc4beaf1f (patch)
treedda2285f7913f23377f1d84f6c24bac5bf1a2009 /arch/arm/mach-s3c64xx
parentARM: s3c24xx: Constify wake_irqs (diff)
downloadkernel-qcow2-linux-cda1a52dab50340728e46601e6c9da9fc4beaf1f.tar.gz
kernel-qcow2-linux-cda1a52dab50340728e46601e6c9da9fc4beaf1f.tar.xz
kernel-qcow2-linux-cda1a52dab50340728e46601e6c9da9fc4beaf1f.zip
ARM: s3c64xx: Constify wake_irqs
samsung_sync_wakemask() accepts pointer to const data so wake_irqs can be made const to increase safeness. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r--arch/arm/mach-s3c64xx/pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c
index 59d91b83b03d..b0be382ff6bb 100644
--- a/arch/arm/mach-s3c64xx/pm.c
+++ b/arch/arm/mach-s3c64xx/pm.c
@@ -285,7 +285,7 @@ static int s3c64xx_cpu_suspend(unsigned long arg)
}
/* mapping of interrupts to parts of the wakeup mask */
-static struct samsung_wakeup_mask wake_irqs[] = {
+static const struct samsung_wakeup_mask wake_irqs[] = {
{ .irq = IRQ_RTC_ALARM, .bit = S3C64XX_PWRCFG_RTC_ALARM_DISABLE, },
{ .irq = IRQ_RTC_TIC, .bit = S3C64XX_PWRCFG_RTC_TICK_DISABLE, },
{ .irq = IRQ_PENDN, .bit = S3C64XX_PWRCFG_TS_DISABLE, },