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>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	linux-arm-msm@vger.kernel.org
Subject: [PATCH 8/8] phy: qcom-ipq4019-usb: Constify static phy_ops structs
Date: Mon, 24 Aug 2020 00:00:25 +0200	[thread overview]
Message-ID: <20200823220025.17588-9-rikard.falkeborn@gmail.com> (raw)
In-Reply-To: <20200823220025.17588-1-rikard.falkeborn@gmail.com>

Their only usages is to assign the address to the data field in the
of_device_id struct, which is a const void pointer. Make them const to
allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
---
 drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c
index b8ef331e1545..fc7f9df80a7b 100644
--- a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c
+++ b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c
@@ -48,7 +48,7 @@ static int ipq4019_ss_phy_power_on(struct phy *_phy)
 	return 0;
 }
 
-static struct phy_ops ipq4019_usb_ss_phy_ops = {
+static const struct phy_ops ipq4019_usb_ss_phy_ops = {
 	.power_on	= ipq4019_ss_phy_power_on,
 	.power_off	= ipq4019_ss_phy_power_off,
 };
@@ -80,7 +80,7 @@ static int ipq4019_hs_phy_power_on(struct phy *_phy)
 	return 0;
 }
 
-static struct phy_ops ipq4019_usb_hs_phy_ops = {
+static const struct phy_ops ipq4019_usb_hs_phy_ops = {
 	.power_on	= ipq4019_hs_phy_power_on,
 	.power_off	= ipq4019_hs_phy_power_off,
 };
-- 
2.28.0


  parent 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: " Rikard Falkeborn
2020-08-23 22:00 ` [PATCH 1/8] phy: cadence: salvo: Constify cdns_salvo_phy_ops Rikard Falkeborn
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 ` Rikard Falkeborn [this message]
2020-08-23 22:07 ` [PATCH 0/8] drivers: phy: Constify static phy_ops structs 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-9-rikard.falkeborn@gmail.com \
    --to=rikard.falkeborn@gmail.com \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=kishon@ti.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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®