cregit-Linux how code gets into the kernel

Release 4.7 include/linux/usb/of.h

/*
 * OF helpers for usb devices.
 *
 * This file is released under the GPLv2
 */

#ifndef __LINUX_USB_OF_H

#define __LINUX_USB_OF_H

#include <linux/usb/ch9.h>
#include <linux/usb/otg.h>
#include <linux/usb/phy.h>

#if IS_ENABLED(CONFIG_OF)
enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np);
bool of_usb_host_tpl_support(struct device_node *np);
int of_usb_update_otg_caps(struct device_node *np,
			struct usb_otg_caps *otg_caps);
struct device_node *usb_of_get_child_node(struct device_node *parent,
			int portnum);
#else

static inline enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np) { return USB_DR_MODE_UNKNOWN; }

Contributors

PersonTokensPropCommitsCommitProp
bin liubin liu1487.50%150.00%
felipe balbifelipe balbi212.50%150.00%
Total16100.00%2100.00%


static inline bool of_usb_host_tpl_support(struct device_node *np) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
peter chenpeter chen15100.00%1100.00%
Total15100.00%1100.00%


static inline int of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
li junli jun20100.00%1100.00%
Total20100.00%1100.00%


static inline struct device_node *usb_of_get_child_node (struct device_node *parent, int portnum) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
peter chenpeter chen20100.00%1100.00%
Total20100.00%1100.00%

#endif #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_USB_SUPPORT) enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np); #else
static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np) { return USBPHY_INTERFACE_MODE_UNKNOWN; }

Contributors

PersonTokensPropCommitsCommitProp
michael grzeschikmichael grzeschik1381.25%150.00%
peter chenpeter chen318.75%150.00%
Total16100.00%2100.00%

#endif #endif /* __LINUX_USB_OF_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
peter chenpeter chen9047.87%333.33%
michael grzeschikmichael grzeschik3418.09%111.11%
li junli jun3418.09%111.11%
bin liubin liu2412.77%111.11%
felipe balbifelipe balbi63.19%333.33%
Total188100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}