Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Kishon Vijay Abraham I
42ad8f67 8083526e

+1 -1
+1 -1
drivers/phy/ulpi_phy.h
··· 5 5 * and it's controller, which is always the parent. 6 6 */ 7 7 static inline struct phy 8 - *ulpi_phy_create(struct ulpi *ulpi, struct phy_ops *ops) 8 + *ulpi_phy_create(struct ulpi *ulpi, const struct phy_ops *ops) 9 9 { 10 10 struct phy *phy; 11 11 int ret;