Message ID | 1424771419-7731-1-git-send-email-k.kozlowski@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDKZNNNLXAHBBJMTWGTQKGQETJ2JJEY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ob0-x23c.google.com (mail-ob0-x23c.google.com [IPv6:2607:f8b0:4003:c01::23c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DB92B140134 for <incoming@patchwork.ozlabs.org>; Tue, 24 Feb 2015 20:51:35 +1100 (AEDT) Received: by mail-ob0-f188.google.com with SMTP id uy5sf9222196obc.5 for <incoming@patchwork.ozlabs.org>; Tue, 24 Feb 2015 01:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=6vaR9CHtXD2KDHOItmMriaJVFhBTR3Idm83wiWW7lZ8=; b=Fw0BpCq2W4ml/rIs2pNjkd5yKTRklxinelNu1C9pdxeB0mYqS4kg9Hk77OI9CLlYUI mWUfNa/+gza8NRGTwL9EcQsUNdwsWUf8ciQt9vkEP3X5jRQHloLVn6w4RmMENfthcYYi 7OCzEfXbZvOBTH6F0os2CspIXXgwoAtH4rE3GIJI/fTiLdIzEwfgrsnjTB20Ah5wQtNV O/zN1QDGn+JqaLbvCX3pAOB8xCpzkf5D4PXK0LT50MrqeXzJo7+WTRebpH4eP+N6rYYN 5c0j+5X7G3Vfuc7m7VZG0cuv6Bgxt76FnK20voIMcapgOEXI0XzR71fKSSK5c3asqYNE 9x1g== X-Received: by 10.182.97.8 with SMTP id dw8mr81960obb.14.1424771493464; Tue, 24 Feb 2015 01:51:33 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.182.97.73 with SMTP id dy9ls864053obb.2.gmail; Tue, 24 Feb 2015 01:51:33 -0800 (PST) X-Received: by 10.182.246.37 with SMTP id xt5mr16341607obc.25.1424771493125; Tue, 24 Feb 2015 01:51:33 -0800 (PST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com. [210.118.77.12]) by gmr-mx.google.com with ESMTPS id pc4si4591595pac.0.2015.02.24.01.51.32 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=RC4-MD5 bits=128/128); Tue, 24 Feb 2015 01:51:33 -0800 (PST) Received-SPF: none (google.com: k.kozlowski@samsung.com does not designate permitted sender hosts) client-ip=210.118.77.12; Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NK900I5ZSWI2S60@mailout2.w1.samsung.com> for rtc-linux@googlegroups.com; Tue, 24 Feb 2015 09:55:30 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-8d-54ec490c5a30 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 3D.53.26295.C094CE45; Tue, 24 Feb 2015 09:49:00 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NK9002CGSNYXX90@eusync3.samsung.com>; Tue, 24 Feb 2015 09:51:28 +0000 (GMT) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Alessandro Zummo <a.zummo@towertech.it>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> Subject: [rtc-linux] [PATCH] rtc: rtc-ab-b5ze-s3: Constify struct regmap_config Date: Tue, 24 Feb 2015 10:50:19 +0100 Message-id: <1424771419-7731-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGJMWRmVeSWpSXmKPExsVy+t/xq7o8nm9CDDaslrFYcvEqu8XrF4YW l3fNYbPY39nB6MDisWfiSTaPvi2rGD2mz/vJ5PF5k1wASxSXTUpqTmZZapG+XQJXxprd+1kL etkqTuz8xNzAOJG1i5GDQ0LARGLno4ouRk4gU0ziwr31bF2MXBxCAksZJb7PamIHSQgJ9DFJ /HocB2KzCRhLbF6+hA3EFhFIl1g07QoTiM0sYCjx890fsHphAWeJP1s6mUFsFgFViWUTj4Pt 4hVwk3j12wBil5zEyWOTWScwci9gZFjFKJpamlxQnJSea6RXnJhbXJqXrpecn7uJEeL3rzsY lx6zOsQowMGoxMP7oOxViBBrYllxZe4hRgkOZiUR3gW2b0KEeFMSK6tSi/Lji0pzUosPMTJx cEo1MJ54s77s9IsKi/fmrk3mXitbD6Q0RxY92PmmYf5n1r7V01h1X0y5t+Oi2IkP5VdvCWon Nu3LWPG+89xupvrd3bXCnKukBUvWiyj43Pkylf1N25wO35MeSzecsHRanpps9kl0/eSv/L9n TvA4ZuxSERBuqK+qL/r+xL6f/wMXdl0UWdjI05r8T0eJpTgj0VCLuag4EQBXj4a62QEAAA== X-Original-Sender: k.kozlowski@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=none (google.com: k.kozlowski@samsung.com does not designate permitted sender hosts) smtp.mail=k.kozlowski@samsung.com Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <http://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/drivers/rtc/rtc-ab-b5ze-s3.c b/drivers/rtc/rtc-ab-b5ze-s3.c index cfc2ef98d393..b5cbc1bf5a3e 100644 --- a/drivers/rtc/rtc-ab-b5ze-s3.c +++ b/drivers/rtc/rtc-ab-b5ze-s3.c @@ -881,7 +881,7 @@ static const struct rtc_class_ops rtc_ops = { .alarm_irq_enable = abb5zes3_rtc_alarm_irq_enable, }; -static struct regmap_config abb5zes3_rtc_regmap_config = { +static const struct regmap_config abb5zes3_rtc_regmap_config = { .reg_bits = 8, .val_bits = 8, };
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 <k.kozlowski@samsung.com> --- drivers/rtc/rtc-ab-b5ze-s3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)