mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rikard Falkeborn <rikard.falkeborn@gmail.com>
To: Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	Rikard Falkeborn <rikard.falkeborn@gmail.com>,
	Peter Chen <peter.chen@nxp.com>
Subject: [PATCH 1/8] phy: cadence: salvo: Constify cdns_salvo_phy_ops
Date: Mon, 24 Aug 2020 00:00:18 +0200	[thread overview]
Message-ID: <20200823220025.17588-2-rikard.falkeborn@gmail.com> (raw)
In-Reply-To: <20200823220025.17588-1-rikard.falkeborn@gmail.com>

The only usage is to pass its address to devm_phy_create() which takes a
const pointer. Make it const to allow the compiler to put it in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
---
 drivers/phy/cadence/phy-cadence-salvo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/cadence/phy-cadence-salvo.c b/drivers/phy/cadence/phy-cadence-salvo.c
index 016514e4aa54..8c33d3215f2d 100644
--- a/drivers/phy/cadence/phy-cadence-salvo.c
+++ b/drivers/phy/cadence/phy-cadence-salvo.c
@@ -251,7 +251,7 @@ static int cdns_salvo_phy_power_off(struct phy *phy)
 	return 0;
 }
 
-static struct phy_ops cdns_salvo_phy_ops = {
+static const struct phy_ops cdns_salvo_phy_ops = {
 	.init		= cdns_salvo_phy_init,
 	.power_on	= cdns_salvo_phy_power_on,
 	.power_off	= cdns_salvo_phy_power_off,
-- 
2.28.0


  reply	other threads:[~2020-08-23 22:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23 22:00 [PATCH 0/8] drivers: phy: Constify static phy_ops structs Rikard Falkeborn
2020-08-23 22:00 ` Rikard Falkeborn [this message]
2020-08-23 22:00 ` [PATCH 2/8] phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 3/8] phy: hisilicon; Constify hi3660_phy_ops Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 4/8] phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_ops Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 5/8] phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_ops Rikard Falkeborn
2020-08-24 18:13   ` Martin Blumenstingl
2020-08-23 22:00 ` [PATCH 6/8] phy: ralink-usb: Constify ralink_usb_phy_ops Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 7/8] phy: samsung-ufs: Constify samsung_ufs_phy_ops Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 8/8] phy: qcom-ipq4019-usb: Constify static phy_ops structs Rikard Falkeborn
2020-08-23 22:07 ` [PATCH 0/8] drivers: phy: " Joe Perches
2020-08-31  9:06 ` Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200823220025.17588-2-rikard.falkeborn@gmail.com \
    --to=rikard.falkeborn@gmail.com \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.chen@nxp.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®