suspend: constify platform_suspend_ops
authorLionel Debroux <lionel_debroux@yahoo.fr>
Tue, 16 Nov 2010 13:14:02 +0000 (14:14 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 16 Nov 2010 13:14:02 +0000 (14:14 +0100)
commit2f55ac072f5344519348c0c94b3d2f4cca46847b
treef3d544ab2812503b12a205b2515111a796638ffb
parentacc2472ed33fc5e72482cc3b3b846077d97c2f8b
suspend: constify platform_suspend_ops

While at it, fix two checkpatch errors.
Several non-const struct instances constified by this patch were added after
the introduction of platform_suspend_ops in checkpatch.pl's list of "should
be const" structs (79404849e90a41ea2109bd0e2f7c7164b0c4ce73).

Patch against mainline.
Inspired by hunks of the grsecurity patch, updated for newer kernels.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
29 files changed:
arch/arm/mach-at91/pm.c
arch/arm/mach-davinci/pm.c
arch/arm/mach-imx/pm-imx27.c
arch/arm/mach-lpc32xx/pm.c
arch/arm/mach-omap1/pm.c
arch/arm/mach-omap2/pm24xx.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/pm44xx.c
arch/arm/mach-pnx4008/pm.c
arch/arm/mach-pxa/pm.c
arch/arm/mach-pxa/sharpsl_pm.c
arch/arm/mach-sa1100/pm.c
arch/arm/plat-samsung/pm.c
arch/avr32/mach-at32ap/pm.c
arch/blackfin/mach-common/pm.c
arch/mips/alchemy/devboards/pm.c
arch/mips/jz4740/pm.c
arch/mips/loongson/common/pm.c
arch/powerpc/platforms/52xx/lite5200_pm.c
arch/powerpc/platforms/52xx/mpc52xx_pm.c
arch/powerpc/platforms/83xx/suspend.c
arch/powerpc/platforms/pseries/suspend.c
arch/powerpc/sysdev/fsl_pmc.c
arch/sh/boards/mach-hp6xx/pm.c
arch/sh/kernel/cpu/shmobile/pm.c
drivers/acpi/sleep.c
drivers/macintosh/via-pmu.c
include/linux/suspend.h
kernel/power/suspend.c