Received: by 10.213.65.68 with SMTP id h4csp116288imn; Thu, 15 Mar 2018 11:15:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELuw6sT7KSvZ1IMCd9keIw7yKgCAFu7RMjl67gZFOQEm4rH38xUSe9JAku1wdN86a8Vj/53h X-Received: by 10.98.66.131 with SMTP id h3mr2385277pfd.24.1521137729720; Thu, 15 Mar 2018 11:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521137729; cv=none; d=google.com; s=arc-20160816; b=m7Iveui0/xidGVbc2dJWshX4ltnK+bsVaYxWaV+xlF/2wukjRonzopM+UpjaHagMJt xNFtZ7AEOXQ+C0Rdl9LAueSUa6YtHD97/RvV+xURKXOR9moTPaTkbAv5Xc7s5xWLpWwS ZDIaPT+oJqA5iObXUVjgbwpTh+4kTB/k4sRua57zTSpANgjaJiH2ps/37zBSFM0PCUZW yYvboMXxtfK22ipq/vJnlrL1jVpOk/+gpgBKfuQ6tU5o8xQ+b0h67guzp3hU7jq7P0RH +5kjJTPdnD4VzRw/ZYhureOT4TtcPVt7+EBEPnAqcTazIp+aSxk882HvtJLKafCK9H6v JnwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=t0KzIbLg8CVQWXV/pRI6JW5ANzWa/N746TxOEzhm95c=; b=hxG4h4tYftbdQntKZKEfpqK1xzMWDyJ21yeRA6H0TvMMayqEDRzU0R95ouP10mbsvG mTa41u/wOvb5QFkfjmeHdbmpP2Nk7tbT+H7RgEAE6UBH5cHcGyZamUNNw+Syr6HvL9Ky g/517nIu3J0ZserhLSwqgylxxcRqgkZ0AeT+WXbUlJVgyu7HaVeXYq5Rs9/IcgiDVXI/ SpBj+p8aXt25ZLORsg9u1OOLsM1RocsCNPjtkbJN8hUNDA+467PNHwW/KKyZjAMC5lmA eNGecZIQX0QlX+YTqz//hi07EmfRoBxiQVcIBY+mEkAj7LXrgADQ8YUwERdHDMPipepm TvWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=RhxMlsun; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si3752406pgs.597.2018.03.15.11.15.14; Thu, 15 Mar 2018 11:15:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=RhxMlsun; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752672AbeCOSN4 (ORCPT + 99 others); Thu, 15 Mar 2018 14:13:56 -0400 Received: from vern.gendns.com ([206.190.152.46]:36537 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864AbeCOSNy (ORCPT ); Thu, 15 Mar 2018 14:13:54 -0400 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 Cc: David Lechner , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , linux-kernel@vger.kernel.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 - vger.kernel.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: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.7.4