From patchwork Thu Mar 15 18:13:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10285605 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 3B94260291 for ; Thu, 15 Mar 2018 19:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27AE428C1D for ; Thu, 15 Mar 2018 19:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A37C28C1F; Thu, 15 Mar 2018 19:09:57 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 9F7BC28C1D for ; Thu, 15 Mar 2018 19:09:56 +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: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:In-Reply-To: References:List-Owner; bh=s0MpvMFi5Pds3jkS8bXpJvGabfe0xwZlOptiP+9X0Fo=; b=Ajq hMg+vl2nK6sjFSciNKXjWoWQ+iR8mSBbA6HinrLaJ7IRAHCwCH4MvH42W8YX1eKpRgnDSGSfk5IzP Aaap8u7pJeX4lTte5+5Kij+vgoRanyK9wMhLHxA20n/spsWwgJhVd//tYa+LhCTVG7qqGtjnFo4Ae mzXXLRT4robzV3ORZOV4/CJHz4fWlbODdVv9eNA1hPdhB4bnUtQtJ7Dg9Q2670vyPJMwso/qfB8S/ 3yZbpNvVj6mlaFEFG4i2Fbh3w/igI+HWI1S+kDNAV6nFHwi5Qitt5HSEZOmCW0M5AZi1I63CnWLUn 0KBFtfpUXWOuquyoKPvLCzUMOsY19zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewYG4-0005vz-HV; Thu, 15 Mar 2018 19:09:48 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewYG1-0005vT-Uk for linux-arm-kernel@bombadil.infradead.org; Thu, 15 Mar 2018 19:09:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t0KzIbLg8CVQWXV/pRI6JW5ANzWa/N746TxOEzhm95c=; b=g4jXVVCtUVSNHKlLmJ8sEKGu5 +zMM9HQ0KnEaB6DsS8kuewSa8Bw5LqDMJyML75Q4IPNw4YdTh2NwyFImFEAVexEdz4ig0ZTWqBRnU oY3LvOW2utxnCyjXXRLgrAWJeT+Nb7iy4z827u3+Bjk8bSCL1NoLWWy+XxPOVIM2hDNUYIcXkShTb HahD4vLc6xDDtoorThIpcAEwHQh0YfDgL/+HP/acuFDQjx8sBlH0SBKgVD/+UCd3XvUrKkjhq8ELf HQsPB5JwhTVrlsmEqaJd96pEWzbEvnYfqYItBQRpQyQtwgTtbiRl9enAbSjr8vMcMVicB1zOsuLnZ NkmNwCQJw==; Received: from vern.gendns.com ([206.190.152.46]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewXOp-0006yZ-T5 for linux-arm-kernel@lists.infradead.org; Thu, 15 Mar 2018 18:14:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t0KzIbLg8CVQWXV/pRI6JW5ANzWa/N746TxOEzhm95c=; b=RhxMlsunwKTf0hfkKSDS/rktiD R7wtQNvwScCvMXkhOZMolctWWtnXIbjvGPXYURZ5ARg/6nqGELBxZ3ED8imApkiW8BAMiatkLgS+u 9ByDC/GltKAIl8QNQzDdBl4/mHd8e2CGJyoITHxydiM7PTMSYmG6r8iRGDzRS4P+3gYcU5R2rGUK/ XBopFWLwPiBR+IvSdnt6xl44I271YbjfoJFTEQ3j9hCFWHJrG04SyWiDmmiCw1FC9iIpN+SQ/UfAq +/I7jHi3cp12TYVim1nK2lJ4JlT/A0G4/Xp0eB68Bc5nUB7IhjFEOX7HHBncVarTunQ+xFM8eWkC5 wti3SaKg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:38610 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ewXM0-001CS6-J6; Thu, 15 Mar 2018 14:11:54 -0400 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: davinci: DA8XX: simplify CFGCHIP regmap_config Date: Thu, 15 Mar 2018 13:13:41 -0500 Message-Id: <1521137621-6491-1-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180315_141448_010799_38A82D12 X-CRM114-Status: UNSURE ( 8.74 ) 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: Bartosz Golaszewski , Sekhar Nori , David Lechner , linux-kernel@vger.kernel.org, Kevin Hilman 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 Since commit 8253bb3f8255 ("regmap: potentially duplicate the name string stored in regmap"), the name field of struct regmap_config is copied in __regmap_init(), so we no longer need to worry about keeping our own copy of the name. Just use a string literal in the initialization of da8xx_cfgchip_config instead of creating a separate variable for the name. Signed-off-by: David Lechner --- arch/arm/mach-davinci/devices-da8xx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 273b6c2..1fd3619 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -1095,11 +1095,8 @@ int __init da850_register_sata(unsigned long refclkpn) static struct regmap *da8xx_cfgchip; -/* regmap doesn't make a copy of this, so we need to keep the pointer around */ -static const char da8xx_cfgchip_name[] = "cfgchip"; - static const struct regmap_config da8xx_cfgchip_config __initconst = { - .name = da8xx_cfgchip_name, + .name = "cfgchip", .reg_bits = 32, .val_bits = 32, .reg_stride = 4,