From patchwork Mon Jan 5 09:07:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5565751 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 302839F4DC for ; Mon, 5 Jan 2015 09:07:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D211200FF for ; Mon, 5 Jan 2015 09:07:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CB85200E3 for ; Mon, 5 Jan 2015 09:07:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765AbbAEJHN (ORCPT ); Mon, 5 Jan 2015 04:07:13 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:32697 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753763AbbAEJHL (ORCPT ); Mon, 5 Jan 2015 04:07:11 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00H9L5IQIM60@mailout3.w1.samsung.com>; Mon, 05 Jan 2015 09:11:14 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-fc-54aa543e6b45 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FB.AC.07834.E345AA45; Mon, 05 Jan 2015 09:07:10 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NHP009EV5BUPJ80@eusync1.samsung.com>; Mon, 05 Jan 2015 09:07:09 +0000 (GMT) From: Krzysztof Kozlowski To: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] spi: meson: Constify struct regmap_config Date: Mon, 05 Jan 2015 10:07:01 +0100 Message-id: <1420448821-9942-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCJMWRmVeSWpSXmKPExsVy+t/xy7p2IatCDPZ+Y7aY+vAJm8XrF4YW l3fNYbNo/HiT3YHFY9OqTjaPvi2rGD0+b5ILYI7isklJzcksSy3St0vgyph3cipTwW3WivbL e5gbGB+wdDFyckgImEjs2vsYyhaTuHBvPVsXIxeHkMBSRom2NwfYIZw+JokdRx6zg1SxCRhL bF6+hA3EFhGIk7i+8w9YnFnAUOLnOwhbWMBKYsu8s6wgNouAqkT3pVZmEJtXwE3i/aHzTBDb 5CROHpvMOoGRewEjwypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MEJ9/2cG4+JjVIUYBDkYl Hl6PEytDhFgTy4orcw8xSnAwK4nwrrsFFOJNSaysSi3Kjy8qzUktPsTIxMEp1cCYMWNXlFHR P/+JR2f4zPynrvTrkvzplKQZnAw7D/yvsHllt26i2T/pe1dsixZ8jbWx3yuoeXiuum1uq8iK jLvK2m+21d9bV+P/LddJMPqiIkvY/a7dolJ17h1+wR8uJ6js5mG///R04a8iFTfH47/ZNLTf fvvz5IXNxe+tHxbuuplQ/0sieeEHJZbijERDLeai4kQANG3CLdcBAAA= Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Signed-off-by: Krzysztof Kozlowski --- drivers/spi/spi-meson-spifc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c index 1bbac0378bf7..5468fc70dbf8 100644 --- a/drivers/spi/spi-meson-spifc.c +++ b/drivers/spi/spi-meson-spifc.c @@ -85,7 +85,7 @@ struct meson_spifc { struct device *dev; }; -static struct regmap_config spifc_regmap_config = { +static const struct regmap_config spifc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,