phy: ulpi_phy: Add const qualifier to ops
authorAxel Lin <axel.lin@ingics.com>
Fri, 5 Jun 2015 00:27:03 +0000 (08:27 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 3 Aug 2015 13:05:09 +0000 (18:35 +0530)
The ops is never changed in ulpi_phy_create(), so make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/ulpi_phy.h

index ac49fb6285eeecfd4a6db6df0dd28965b55483a6..f2ebe490a4bc590aa381247c9bfbd1a12fecc11b 100644 (file)
@@ -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;