From patchwork Fri Aug 11 06:57:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9895151 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 5AD1260351 for ; Fri, 11 Aug 2017 07:24:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 446A220453 for ; Fri, 11 Aug 2017 07:24:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 393602624A; Fri, 11 Aug 2017 07:24:10 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D89A720453 for ; Fri, 11 Aug 2017 07:24:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yWR+beIj4dmG3SCGcCBJYipPgSpebn1Gg7Is/IRmJDI=; b=jz4iC/XR07NoxM3kxHRM0kYeao vqJqQv2/8KzutJ9tOv2YCezgRkcISVPxBBLd05wCXRHsYz5XotD0PKlLbqOimH5+leVks9s5AK0QT 5qKHgqgqLk3S4RzId++Yn+zUXK/vEIXUiEAEYEJR9CyJaO6z3sEMuV2BYsIbfYovT8lD+6a2n31Ms 8VLRNUWseoViD7o8D570LhIBIw1YOTQXR/YdSOaGtpKVRZRofyTO1wt5j1lFFbOWN0D7t/CwArLmS RDVY4Hlc96OJ9GZabEet/IQwPApegPYvhBD+9t1DX+ifamgQGWykJU4V9Me/0PNkI7FsBrdm9fjzr T43UzwAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dg4If-0007ec-TQ; Fri, 11 Aug 2017 07:24:05 +0000 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dg4IK-0007Mk-QU for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2017 07:23:47 +0000 X-IronPort-AV: E=Sophos;i="5.41,356,1498514400"; d="scan'208";a="234185547" Received: from palace.lip6.fr (HELO localhost.localdomain) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 11 Aug 2017 09:23:17 +0200 From: Julia Lawall To: Maxime Ripard Subject: [PATCH 2/2] bus: sunxi-rsb: constify regmap_bus structures Date: Fri, 11 Aug 2017 08:57:37 +0200 Message-Id: <1502434657-16701-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502434657-16701-1-git-send-email-Julia.Lawall@lip6.fr> References: <1502434657-16701-1-git-send-email-Julia.Lawall@lip6.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170811_002345_375967_C76485D3 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen-Yu Tsai , kernel-janitors@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bhumirks@gmail.com, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This regmap_bus structure is only passed as the second argument to __devm_regmap_init, which is const, so the regmap_bus structure can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/bus/sunxi-rsb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 795c9d9..dc3d781 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -423,7 +423,7 @@ static void regmap_sunxi_rsb_free_ctx(void *context) kfree(ctx); } -static struct regmap_bus regmap_sunxi_rsb = { +static const struct regmap_bus regmap_sunxi_rsb = { .reg_write = regmap_sunxi_rsb_reg_write, .reg_read = regmap_sunxi_rsb_reg_read, .free_context = regmap_sunxi_rsb_free_ctx,