cregit-Linux how code gets into the kernel

Release 4.12 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 *np, int arg0);
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);
struct device *usb_of_get_companion_dev(struct device *dev);
#else

static inline enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0) { return USB_DR_MODE_UNKNOWN; }

Contributors

PersonTokensPropCommitsCommitProp
Bin Liu1368.42%133.33%
Hans de Goede421.05%133.33%
Felipe Balbi210.53%133.33%
Total19100.00%3100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Peter 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 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 Chen20100.00%1100.00%
Total20100.00%1100.00%


static inline struct device *usb_of_get_companion_dev(struct device *dev) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Yoshihiro Shimoda17100.00%1100.00%
Total17100.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 Grzeschik1381.25%150.00%
Peter Chen318.75%150.00%
Total16100.00%2100.00%

#endif #endif /* __LINUX_USB_OF_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Peter Chen9040.54%327.27%
Li Jun3415.32%19.09%
Michael Grzeschik3415.32%19.09%
Yoshihiro Shimoda2812.61%19.09%
Bin Liu229.91%19.09%
Hans de Goede83.60%19.09%
Felipe Balbi62.70%327.27%
Total222100.00%11100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.