From patchwork Mon Jun 29 19:57:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 11632009 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A19E814B7 for ; Mon, 29 Jun 2020 19:58:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79F1C2076C for ; Mon, 29 Jun 2020 19:58:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hsjkdHMo"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lk2ZKv/8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79F1C2076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=AspjmR1qimkiMsA/YOtixWK99zJOouurjOqlSgupvxw=; b=hsjkdHMo2Rt+yPb5hjfoVHldYQ 4tqIcimaBS3gJa9wS84x/ybtl4Kj/NTCtxyGU2XIXMxro9CqPoijkrZG+8N4YkTF7sTshYoCosnWb PrxbVsMnR+qRZNg9eN1n/rtrB2tjyXX0cfOY6bauUJC5qkDIMSHQSSVBBVhTLe8+cWq9GVNqUW1Zu jnADuRuxi3iVn7uOuUEN/KJffNijKfaLVUTs29W8YrvnPFp3iCgtD/MhjlQ9hr6NHojGb8ILCHn4M 9Z1b1QLuoJ7L+IJtKZiBbdkWGcsZzicK9pN4fT8ZaEtzT9gO3HdkhKCJy+tttN+1SmPmH4ZIXb53f qOTfSOsw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpzuJ-00017d-EQ; Mon, 29 Jun 2020 19:57:35 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpzuH-00016T-6X for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2020 19:57:34 +0000 Received: by mail-lf1-x143.google.com with SMTP id g2so9906496lfb.0 for ; Mon, 29 Jun 2020 12:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HXip5KwBZ4zG01jb8JoG5vDVesbu67fX4v/5SOWVsj4=; b=Lk2ZKv/8twm874ckZSIpONTn1wKHEBB2f/Q7LqsydREQ3t324cgr3ti8w4T35d2hqD stZeidGIKh7SFUlqSamSyI6bumqDuxvRhUR/GR3Ou4bbFVuEKvej60UDCiABSrNj82xS s6q8oULU2pm6FzX20VTkivj1emLaZoqjdOjg8gxUcikDWxMNQImO70ppQ/w+2wxP3prx aiBSTMMtSaQEiqS8jQd4JObvXwALmYxrLk/nwQ+Hh9mGPARJJ608+xOH3oGkSmpqrEJq OrnDXyWTDQkYZng/JBYDEqMgjpsOhJ8KHg6KdSVfVBlfaQJpYtsMdL69J6B9ytpAT0Te IsmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HXip5KwBZ4zG01jb8JoG5vDVesbu67fX4v/5SOWVsj4=; b=TKbNUNBekH8ysaWDXJQ+YV4b0ZndUFADXLdmoaJuGq95H5klJe4mB9k2epCdQQ/U8A JK0mLPtTikVIXiQxsVoczEkwTdiYqIb7zzusGuSHg5hXu3EBq+xSLooYGP4Pf1G6EzlR J3wBnjdAX1h4/OiLfGxVpiufLD8NGXfDVoHE8QyWLmSSJ+7ZVThRDmt4awkzqdlwnu+v rNiR7NdGKtOs+E4HUiRycs+BZS7qAXfcT4f20M4GEENhGp06HNZV+r1APZs7zjYx7A5z l8Lkiw2PJc7wFG8LzcKPZcvUDXcz1RtHeVipASOgwmRo6QU4nCN3b1ODyqxdqfjQjGpx MZcg== X-Gm-Message-State: AOAM533Srfp5/0crizODYSWKZfdqvPmUcpMegPnn7M0p523nrovXPV8p 71uhiO5oxijqhaJ3AO3NeRA= X-Google-Smtp-Source: ABdhPJzyjzo4qb7j6DhvyjzqhExSDy157w8OBaZ64xKDwkrn8HkXTU6LDyhB2G94yoljtX3cTlmO2g== X-Received: by 2002:a05:6512:31c5:: with SMTP id j5mr10255219lfe.26.1593460650455; Mon, 29 Jun 2020 12:57:30 -0700 (PDT) Received: from localhost.localdomain (h-98-128-228-147.NA.cust.bahnhof.se. [98.128.228.147]) by smtp.gmail.com with ESMTPSA id y26sm166482ljk.26.2020.06.29.12.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 12:57:29 -0700 (PDT) From: Rikard Falkeborn To: mripard@kernel.org, wens@csie.org Subject: [PATCH] phy: allwinner: phy-sun6i-mipi-dphy: Constify structs Date: Mon, 29 Jun 2020 21:57:27 +0200 Message-Id: <20200629195727.9717-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:143 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rikard.falkeborn[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rikard Falkeborn , vkoul@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org sun6i_dphy_ops and sun6i_dphy_regmap_config are not modified so make them const structs to allow the compiler to put them in read-only memory. Before: text data bss dec hex filename 4407 1944 64 6415 190f drivers/phy/allwinner/phy-sun6i-mipi-dphy.o After: text data bss dec hex filename 4835 1496 64 6395 18fb drivers/phy/allwinner/phy-sun6i-mipi-dphy.o Signed-off-by: Rikard Falkeborn Acked-by: Maxime Ripard --- drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c b/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c index 79c8af5c7c1d..1fa761ba6cbb 100644 --- a/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c +++ b/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c @@ -233,7 +233,7 @@ static int sun6i_dphy_exit(struct phy *phy) } -static struct phy_ops sun6i_dphy_ops = { +static const struct phy_ops sun6i_dphy_ops = { .configure = sun6i_dphy_configure, .power_on = sun6i_dphy_power_on, .power_off = sun6i_dphy_power_off, @@ -241,7 +241,7 @@ static struct phy_ops sun6i_dphy_ops = { .exit = sun6i_dphy_exit, }; -static struct regmap_config sun6i_dphy_regmap_config = { +static const struct regmap_config sun6i_dphy_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,