Commit 71b96c3a authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

pinctrl: samsung: Constify wakeup driver specific data

Static exynos_irq_chip structures, containing driver specific data, are
referenced only through opaque data pointer in const of_device_id table.
The contents of pointed memory (exynos_irq_chip structure itself) is
then copied with kmemdup() during wakeup initialization so
exynos_irq_chip can be made const for code safenes.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent cfa76ddf
...@@ -363,7 +363,7 @@ static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) ...@@ -363,7 +363,7 @@ static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on)
/* /*
* irq_chip for wakeup interrupts * irq_chip for wakeup interrupts
*/ */
static struct exynos_irq_chip exynos4210_wkup_irq_chip __initdata = { static const struct exynos_irq_chip exynos4210_wkup_irq_chip __initconst = {
.chip = { .chip = {
.name = "exynos4210_wkup_irq_chip", .name = "exynos4210_wkup_irq_chip",
.irq_unmask = exynos_irq_unmask, .irq_unmask = exynos_irq_unmask,
...@@ -379,7 +379,7 @@ static struct exynos_irq_chip exynos4210_wkup_irq_chip __initdata = { ...@@ -379,7 +379,7 @@ static struct exynos_irq_chip exynos4210_wkup_irq_chip __initdata = {
.eint_pend = EXYNOS_WKUP_EPEND_OFFSET, .eint_pend = EXYNOS_WKUP_EPEND_OFFSET,
}; };
static struct exynos_irq_chip exynos7_wkup_irq_chip __initdata = { static const struct exynos_irq_chip exynos7_wkup_irq_chip __initconst = {
.chip = { .chip = {
.name = "exynos7_wkup_irq_chip", .name = "exynos7_wkup_irq_chip",
.irq_unmask = exynos_irq_unmask, .irq_unmask = exynos_irq_unmask,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment