From: Axel Lin Date: Fri, 5 Jun 2015 00:27:03 +0000 (+0800) Subject: phy: ulpi_phy: Add const qualifier to ops X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42ad8f6721720513f3569a67b157fcff068aa92d;p=linux-beck.git 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 Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/ulpi_phy.h b/drivers/phy/ulpi_phy.h index ac49fb6285ee..f2ebe490a4bc 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;