瀏覽代碼

phy: ulpi_phy: Add const qualifier to ops

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>
Axel Lin 10 年之前
父節點
當前提交
42ad8f6721
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/phy/ulpi_phy.h

+ 1 - 1
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;