cregit-Linux how code gets into the kernel

Release 4.16 include/linux/usb/of.h

// SPDX-License-Identifier: GPL-2.0
/*
 * 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>

struct usb_device;

#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_device_node(struct usb_device *hub, int port1);
bool usb_of_has_combined_node(struct usb_device *udev);
struct device_node *usb_of_get_interface_node(struct usb_device *udev,
		u8 config, u8 ifnum);
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_device_node(struct usb_device *hub, int port1) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Peter Chen1260.00%133.33%
Yoshihiro Shimoda420.00%133.33%
Johan Hovold420.00%133.33%
Total20100.00%3100.00%


static inline bool usb_of_has_combined_node(struct usb_device *udev) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
Johan Hovold15100.00%1100.00%
Total15100.00%1100.00%


static inline struct device_node * usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Johan Hovold23100.00%1100.00%
Total23100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Yoshihiro Shimoda1376.47%150.00%
Peter Chen423.53%150.00%
Total17100.00%2100.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 Chen8228.28%321.43%
Johan Hovold7525.86%214.29%
Michael Grzeschik3411.72%17.14%
Li Jun3411.72%17.14%
Yoshihiro Shimoda289.66%17.14%
Bin Liu227.59%17.14%
Hans de Goede82.76%17.14%
Felipe Balbi62.07%321.43%
Greg Kroah-Hartman10.34%17.14%
Total290100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.