History

usb: ulpi: Add resource-managed variant of otg_ulpi_create()

Now drivers (like NVIDIA Tegra USB PHY for example) will be able to benefit from the resource-managed variant, making driver's code a bit cleaner.

Dmitry Osipenko committed 6 years ago

Commit dea75ee1 parent 9df3adc2 files · +50 −9Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/usb/ulpi.h+11−0
@@ -55,12 +55,23 @@ · 54 unmodified lines
5555 #if IS_ENABLED(CONFIG_USB_ULPI)
5656 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
5757 unsigned int flags);
58+
59+struct usb_phy *devm_otg_ulpi_create(struct device *dev,
60+ struct usb_phy_io_ops *ops,
61+ unsigned int flags);
5862 #else
5963 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
6064 unsigned int flags)
6165 {
6266 return NULL;
6367 }
68+
69+static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev,
70+ struct usb_phy_io_ops *ops,
71+ unsigned int flags)
72+{
73+ return NULL;
74+}
6475 #endif
6576
6677 #ifdef CONFIG_USB_ULPI_VIEWPORT