From patchwork Sat Aug 12 06:09:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9896877 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7255660236 for ; Sat, 12 Aug 2017 06:10:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70E2328D1E for ; Sat, 12 Aug 2017 06:10:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 658F428D22; Sat, 12 Aug 2017 06:10:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10AAC28D1E for ; Sat, 12 Aug 2017 06:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbdHLGJb (ORCPT ); Sat, 12 Aug 2017 02:09:31 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35648 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbdHLGJ2 (ORCPT ); Sat, 12 Aug 2017 02:09:28 -0400 Received: by mail-pf0-f196.google.com with SMTP id j68so5180576pfc.2; Fri, 11 Aug 2017 23:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hF1ERpWlfqeCu7F9TkU5TgtjSS3tlVQEisaWCcNGsD8=; b=sUeXiScWA5agaoUHQpsyN1BDUWTsbojn+t5EWbjiDnevZWq9YPz+MY/VEKs8FTPzkI /FS2H0ZvcP/Zsg8tN9HH9u8Dv/tHLocUA9e7EQnpvD2Xay+Zu1WXvrD2IcsK/1hOrkpl JiKKWsti4c2dUn67OhnAHAT64fJOx7c+1nDVJT2d9uTDhCpBPpK3qsg8KxzDP26INtnb tjJyL8QRX2mSLiYWS0/7pMEsK0Rzp2jNi+oQAAlfL4ccHRvwEU+oLrWOFfMvgdFYkjbl bKERxkUTOCFJHbl51LzrN7zrvFAlL1TGGNr3K/8BpQ8+gsh/tEQkyYMpxdDkMbuf0xuj w/8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hF1ERpWlfqeCu7F9TkU5TgtjSS3tlVQEisaWCcNGsD8=; b=OG7IzYI2s7zzirUbim0OcJ7QwjVDD4MwC9qpIAM/j1N14itC32dkudlA/Nzk138Z6K eTV+c+EanI54B5Zs6JD4RJtx9TOZHg1XC+gAEOAFrxO4/HhMT9HxMU4c5TgcH6HCYCLV KsOjUdNxn7G2yumYcWvtCSsOUvk0ytCtQ8sO6cq9LCEMdaAANp4wBSOinsOf5esrwgA2 F5PmMYH/v7khF3NqNwWBQBQx3ZvA20tvOBZIbM0iZ7HgEUyqTVtfT0drXWh7vF6rvREY 2Knhp7fvoBn4VnojGv38IOxIZMytHjuCJ1vYNozH9MMYekgyZAG3VBReBjaNNo8su3GT 6mwQ== X-Gm-Message-State: AHYfb5jDC0X7048nWP0eSaedfLfJeA2Eq2rxmR/M8B5e4L1i03dPEd56 uJaz+TBTWRDb8w== X-Received: by 10.84.211.150 with SMTP id c22mr20099471pli.372.1502518167685; Fri, 11 Aug 2017 23:09:27 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id e67sm4399446pfd.122.2017.08.11.23.09.22 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 Aug 2017 23:09:27 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 11:39:19 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, linus.walleij@linaro.org, marek.vasut+renesas@gmail.com, lee.jones@linaro.org, tony@atomide.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 1/2] mfd: make regmap_irq_chip const Date: Sat, 12 Aug 2017 11:39:08 +0530 Message-Id: <1502518149-11663-2-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502518149-11663-1-git-send-email-bhumirks@gmail.com> References: <1502518149-11663-1-git-send-email-bhumirks@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are either passed to the function devm_regmap_add_irq_chip or regmap_add_irq_chip having the corresponding arguments as const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/mfd/bd9571mwv.c | 2 +- drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +- drivers/mfd/tps65086.c | 2 +- drivers/mfd/tps65090.c | 2 +- drivers/mfd/tps65218.c | 2 +- drivers/mfd/tps65912-core.c | 2 +- drivers/mfd/tps80031.c | 2 +- drivers/mfd/twl6040.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd/bd9571mwv.c index 64e088d..6c1668c 100644 --- a/drivers/mfd/bd9571mwv.c +++ b/drivers/mfd/bd9571mwv.c @@ -96,7 +96,7 @@ BD9571MWV_INT_INTREQ_BKUP_TRG_INT), }; -static struct regmap_irq_chip bd9571mwv_irq_chip = { +static const struct regmap_irq_chip bd9571mwv_irq_chip = { .name = "bd9571mwv", .status_base = BD9571MWV_INT_INTREQ, .mask_base = BD9571MWV_INT_INTMASK, diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c index 15bc052..7396d8a 100644 --- a/drivers/mfd/intel_soc_pmic_bxtwc.c +++ b/drivers/mfd/intel_soc_pmic_bxtwc.c @@ -138,7 +138,7 @@ enum bxtwc_irqs_crit { REGMAP_IRQ_REG(BXTWC_CRIT_IRQ, 0, 0x03), }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip = { .name = "bxtwc_irq_chip", .status_base = BXTWC_IRQLVL1, .mask_base = BXTWC_MIRQLVL1, diff --git a/drivers/mfd/tps65086.c b/drivers/mfd/tps65086.c index 43119a6..24b5999 100644 --- a/drivers/mfd/tps65086.c +++ b/drivers/mfd/tps65086.c @@ -51,7 +51,7 @@ REGMAP_IRQ_REG(TPS65086_IRQ_FAULT, 0, TPS65086_IRQ_FAULT_MASK), }; -static struct regmap_irq_chip tps65086_irq_chip = { +static const struct regmap_irq_chip tps65086_irq_chip = { .name = "tps65086", .status_base = TPS65086_IRQ, .mask_base = TPS65086_IRQ_MASK, diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index d7ec318..48d93b2 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -130,7 +130,7 @@ enum tps65090_cells { }, }; -static struct regmap_irq_chip tps65090_irq_chip = { +static const struct regmap_irq_chip tps65090_irq_chip = { .name = "tps65090", .irqs = tps65090_irqs, .num_irqs = ARRAY_SIZE(tps65090_irqs), diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c index 13834a0..269f90ce 100644 --- a/drivers/mfd/tps65218.c +++ b/drivers/mfd/tps65218.c @@ -195,7 +195,7 @@ int tps65218_clear_bits(struct tps65218 *tps, unsigned int reg, }, }; -static struct regmap_irq_chip tps65218_irq_chip = { +static const struct regmap_irq_chip tps65218_irq_chip = { .name = "tps65218", .irqs = tps65218_irqs, .num_irqs = ARRAY_SIZE(tps65218_irqs), diff --git a/drivers/mfd/tps65912-core.c b/drivers/mfd/tps65912-core.c index f33567b..dbc71f0 100644 --- a/drivers/mfd/tps65912-core.c +++ b/drivers/mfd/tps65912-core.c @@ -65,7 +65,7 @@ REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO10, 3, TPS65912_INT_STS4_PGOOD_LDO10), }; -static struct regmap_irq_chip tps65912_irq_chip = { +static const struct regmap_irq_chip tps65912_irq_chip = { .name = "tps65912", .irqs = tps65912_irqs, .num_irqs = ARRAY_SIZE(tps65912_irqs), diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c index 0812df3..7ce4bc8 100644 --- a/drivers/mfd/tps80031.c +++ b/drivers/mfd/tps80031.c @@ -114,7 +114,7 @@ struct tps80031_pupd_data { [TPS80031_INT_RES2] = TPS80031_IRQ(C, 7), }; -static struct regmap_irq_chip tps80031_irq_chip = { +static const struct regmap_irq_chip tps80031_irq_chip = { .name = "tps80031", .irqs = tps80031_main_irqs, .num_irqs = ARRAY_SIZE(tps80031_main_irqs), diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index d66502d..a1b6521 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -621,7 +621,7 @@ static bool twl6040_writeable_reg(struct device *dev, unsigned int reg) { .reg_offset = 0, .mask = TWL6040_READYINT, }, }; -static struct regmap_irq_chip twl6040_irq_chip = { +static const struct regmap_irq_chip twl6040_irq_chip = { .name = "twl6040", .irqs = twl6040_irqs, .num_irqs = ARRAY_SIZE(twl6040_irqs),