Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1158904 > unrolled thread

[PATCH] phy: ulpi_phy: Add const qualifier to ops

Started byAxel Lin <axel.lin@ingics.com>
First post2015-06-05 02:30 +0200
Last post2015-06-05 02:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] phy: ulpi_phy: Add const qualifier to ops Axel Lin <axel.lin@ingics.com> - 2015-06-05 02:30 +0200

#1158904 — [PATCH] phy: ulpi_phy: Add const qualifier to ops

FromAxel Lin <axel.lin@ingics.com>
Date2015-06-05 02:30 +0200
Subject[PATCH] phy: ulpi_phy: Add const qualifier to ops
Message-ID<pxNGh-nY-15@gated-at.bofh.it>
The ops is never changed in ulpi_phy_create(), so make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/phy/ulpi_phy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/ulpi_phy.h b/drivers/phy/ulpi_phy.h
index ac49fb6..f2ebe49 100644
--- a/drivers/phy/ulpi_phy.h
+++ b/drivers/phy/ulpi_phy.h
@@ -5,7 +5,7 @@
  * and it's controller, which is always the parent.
  */
 static inline struct phy
-*ulpi_phy_create(struct ulpi *ulpi, struct phy_ops *ops)
+*ulpi_phy_create(struct ulpi *ulpi, const struct phy_ops *ops)
 {
 	struct phy *phy;
 	int ret;
-- 
2.1.0



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web