From patchwork Mon Jul 3 14:10:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 106901 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp9439945obb; Mon, 3 Jul 2017 07:12:25 -0700 (PDT) X-Received: by 10.99.47.66 with SMTP id v63mr10745523pgv.207.1499091145690; Mon, 03 Jul 2017 07:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499091145; cv=none; d=google.com; s=arc-20160816; b=IjXuHek1N9Lp6T3IDYpWDSH25KQPKwe85NDXrAJEasgwJL1mLyjZlVSIoj2Gp9R5bD 0UNtiG9+coDDCNTig6c8JHjLFwTeTM9KMfVGNGQA9pw9OTbVdqWIINyACZsuu4V4gGNL Ug7GMW4GWldeZa0FyFGiN1eRv5dRO+3NqYOeXfDw/GRfLGgBdTddS9MV2oAZ+MhaZql/ iVJiWPGOsiuh+nOMWlmAQwJvXPelZvKYbgTUtEWa/TYTGYX9GZauyilxDCcxYfw9Jb9q WKwHdbWIQ5e9u9Wa+4DPocDZ3AszHlvPqazuv0yqQOSoM2TdP/8fued4GGj8pWFlwIZU oqjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=Z8UD8/72wQ61g01Bap7A3CiozsDtM0uIIAb9Arh+ObE=; b=V6rtDsWBHbil2pA2Iteb7Z9pa/Z4BeVpmaUQNzhIirmTCM8xrMUEMkjQpa9+YPMLva dXG8kv//1nVMsZbFq9PI6m3zEak+BhB53KXwKOnjQM7XweDGEQWemoYCScn41+9xcENb PEj7I8eVEQD3TvoXj3Cus9nz11Gf3uCJ07QP+JOGBvYwCRH8hOeLuiYqtFbUYv23DQwH 0iNItYvNEapQmtDRPZiQh3vY1K+PZwZL3pjckUsG9OEHAQcKFJO5TwA/LYD9GfPFm4om t8nvYKt8zlMpQquz4eiTgoRRIO7RigvnbDRSUXC21NyIzEaEhbStyvwelmhTbHxARuu9 WiQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=TUwzi9YC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si11982276pge.432.2017.07.03.07.12.25; Mon, 03 Jul 2017 07:12:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.b=TUwzi9YC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755984AbdGCOMQ (ORCPT + 25 others); Mon, 3 Jul 2017 10:12:16 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:61996 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755167AbdGCOML (ORCPT ); Mon, 3 Jul 2017 10:12:11 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id v63EAHqS020455; Mon, 3 Jul 2017 23:10:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v63EAHqS020455 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1499091019; bh=Z8UD8/72wQ61g01Bap7A3CiozsDtM0uIIAb9Arh+ObE=; h=From:To:Cc:Subject:Date:From; b=TUwzi9YC0CoZ0ROJ+UlAA1SaWvrELHFr8edDkrshdzdrc0XjuNN4dJlX3dd0PAOwb vUUeB60O38QHZtEzn7mVjTwZPnSJz13fR/1//wjuD+t+/5ib33KwmfLw+8FnHMxFih LiPAek5B070dYWoF1NR+fSvlviTwe8wKtM2kb0b92ugLSAdAOYb5fj4G7O+WpvQXLg 6fAJY+DprKD2LR7g5nOOayRZ7upKfcPiGzGHVH6CWyhlqaDAVBpYNzdE3hjmTqAKwQ Mca36xuLG8Z2C1QLGIdtbrEXQVKMMiQgPabJzfClTcI1EyeRPK2gWxpjWT3e5W6hvp ZiakEz/Ghcnvw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Masahiro Yamada , uclinux-h8-devel@lists.sourceforge.jp, Yoshinori Sato , Alexandre Torgue , linux-kernel@vger.kernel.org, Maxime Coquelin , Joel Stanley , linux-arm-kernel@lists.infradead.org Subject: [PATCH] irqchip: constify irq_domain_ops Date: Mon, 3 Jul 2017 23:10:04 +0900 Message-Id: <1499091004-20909-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The core framework does not modify irq_domain_ops, so those driver data can be qualified with 'const'. Signed-off-by: Masahiro Yamada --- drivers/irqchip/irq-aspeed-vic.c | 2 +- drivers/irqchip/irq-i8259.c | 2 +- drivers/irqchip/irq-imx-gpcv2.c | 2 +- drivers/irqchip/irq-mbigen.c | 2 +- drivers/irqchip/irq-mips-gic.c | 2 +- drivers/irqchip/irq-renesas-h8300h.c | 2 +- drivers/irqchip/irq-renesas-h8s.c | 2 +- drivers/irqchip/irq-stm32-exti.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/irqchip/irq-aspeed-vic.c b/drivers/irqchip/irq-aspeed-vic.c index d24451d5bf8a..88e139e4c1f9 100644 --- a/drivers/irqchip/irq-aspeed-vic.c +++ b/drivers/irqchip/irq-aspeed-vic.c @@ -186,7 +186,7 @@ static int avic_map(struct irq_domain *d, unsigned int irq, return 0; } -static struct irq_domain_ops avic_dom_ops = { +static const struct irq_domain_ops avic_dom_ops = { .map = avic_map, .xlate = irq_domain_xlate_onetwocell, }; diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c index 1aec12c6d9ac..7aafbb091b67 100644 --- a/drivers/irqchip/irq-i8259.c +++ b/drivers/irqchip/irq-i8259.c @@ -307,7 +307,7 @@ static int i8259A_irq_domain_map(struct irq_domain *d, unsigned int virq, return 0; } -static struct irq_domain_ops i8259A_ops = { +static const struct irq_domain_ops i8259A_ops = { .map = i8259A_irq_domain_map, .xlate = irq_domain_xlate_onecell, }; diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index 9463f3557e82..bb36f572e322 100644 --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -200,7 +200,7 @@ static int imx_gpcv2_domain_alloc(struct irq_domain *domain, &parent_fwspec); } -static struct irq_domain_ops gpcv2_irqchip_data_domain_ops = { +static const struct irq_domain_ops gpcv2_irqchip_data_domain_ops = { .translate = imx_gpcv2_domain_translate, .alloc = imx_gpcv2_domain_alloc, .free = irq_domain_free_irqs_common, diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index 31d6b5a582d2..567b29c47608 100644 --- a/drivers/irqchip/irq-mbigen.c +++ b/drivers/irqchip/irq-mbigen.c @@ -228,7 +228,7 @@ static int mbigen_irq_domain_alloc(struct irq_domain *domain, return 0; } -static struct irq_domain_ops mbigen_domain_ops = { +static const struct irq_domain_ops mbigen_domain_ops = { .translate = mbigen_domain_translate, .alloc = mbigen_irq_domain_alloc, .free = irq_domain_free_irqs_common, diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index 929f8558bf1c..eccea4ce4287 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c @@ -874,7 +874,7 @@ int gic_ipi_domain_match(struct irq_domain *d, struct device_node *node, } } -static struct irq_domain_ops gic_ipi_domain_ops = { +static const struct irq_domain_ops gic_ipi_domain_ops = { .xlate = gic_ipi_domain_xlate, .alloc = gic_ipi_domain_alloc, .free = gic_ipi_domain_free, diff --git a/drivers/irqchip/irq-renesas-h8300h.c b/drivers/irqchip/irq-renesas-h8300h.c index c378768d75b3..b8327590ae52 100644 --- a/drivers/irqchip/irq-renesas-h8300h.c +++ b/drivers/irqchip/irq-renesas-h8300h.c @@ -67,7 +67,7 @@ static int irq_map(struct irq_domain *h, unsigned int virq, return 0; } -static struct irq_domain_ops irq_ops = { +static const struct irq_domain_ops irq_ops = { .map = irq_map, .xlate = irq_domain_xlate_onecell, }; diff --git a/drivers/irqchip/irq-renesas-h8s.c b/drivers/irqchip/irq-renesas-h8s.c index af8c6c61c824..71d8139be26c 100644 --- a/drivers/irqchip/irq-renesas-h8s.c +++ b/drivers/irqchip/irq-renesas-h8s.c @@ -73,7 +73,7 @@ static __init int irq_map(struct irq_domain *h, unsigned int virq, return 0; } -static struct irq_domain_ops irq_ops = { +static const struct irq_domain_ops irq_ops = { .map = irq_map, .xlate = irq_domain_xlate_onecell, }; diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 491568c95aa5..22c3cb844d8e 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -122,7 +122,7 @@ static void stm32_exti_free(struct irq_domain *d, unsigned int virq, irq_domain_reset_irq_data(data); } -struct irq_domain_ops irq_exti_domain_ops = { +static const struct irq_domain_ops irq_exti_domain_ops = { .map = irq_map_generic_chip, .xlate = irq_domain_xlate_onetwocell, .alloc = stm32_exti_alloc,