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

usb: phy: am335x-control: include appropriate header file in phy-am335x-control.c

Include header file drivers/usb/phy/am35x-phy-control.h in
phy/phy-am335x-control.c because function am335x_get_phy_control() has
its prototype declaration in drivers/usb/phy/am35x-phy-control.h.

Also, remove definition of structure phy_control because it is already
defined in the included header.

This eliminates the following warning in phy/phy-am335x-control.c:
drivers/usb/phy/phy-am335x-control.c:114:21: warning: no previous prototype for ‘am335x_get_phy_control’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Rashika Kheria and committed by
Felipe Balbi
db67bc04 0009e99a

+1 -5
+1 -5
drivers/usb/phy/phy-am335x-control.c
··· 3 3 #include <linux/err.h> 4 4 #include <linux/of.h> 5 5 #include <linux/io.h> 6 - 7 - struct phy_control { 8 - void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on); 9 - void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on); 10 - }; 6 + #include "am35x-phy-control.h" 11 7 12 8 struct am335x_control_usb { 13 9 struct device *dev;