/* * mtu3_dr.h - dual role switch and host glue layer header * * Copyright (C) 2016 MediaTek Inc. * * Author: Chunfeng Yun * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef _MTU3_DR_H_ #define _MTU3_DR_H_ #if IS_ENABLED(CONFIG_USB_MTU3_HOST) || IS_ENABLED(CONFIG_USB_MTU3_DUAL_ROLE) int ssusb_host_init(struct ssusb_mtk *ssusb, struct device_node *parent_dn); void ssusb_host_exit(struct ssusb_mtk *ssusb); int ssusb_wakeup_of_property_parse(struct ssusb_mtk *ssusb, struct device_node *dn); int ssusb_host_enable(struct ssusb_mtk *ssusb); int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend); int ssusb_wakeup_enable(struct ssusb_mtk *ssusb); void ssusb_wakeup_disable(struct ssusb_mtk *ssusb); #else static inline int ssusb_host_init(struct ssusb_mtk *ssusb, struct device_node *parent_dn) { return 0; } static inline void ssusb_host_exit(struct ssusb_mtk *ssusb) {} static inline int ssusb_wakeup_of_property_parse( struct ssusb_mtk *ssusb, struct device_node *dn) { return 0; } static inline int ssusb_host_enable(struct ssusb_mtk *ssusb) { return 0; } static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend) { return 0; } static inline int ssusb_wakeup_enable(struct ssusb_mtk *ssusb) { return 0; } static inline void ssusb_wakeup_disable(struct ssusb_mtk *ssusb) {} #endif #if IS_ENABLED(CONFIG_USB_MTU3_GADGET) || IS_ENABLED(CONFIG_USB_MTU3_DUAL_ROLE) int ssusb_gadget_init(struct ssusb_mtk *ssusb); void ssusb_gadget_exit(struct ssusb_mtk *ssusb); #else static inline int ssusb_gadget_init(struct ssusb_mtk *ssusb) { return 0; } static inline void ssusb_gadget_exit(struct ssusb_mtk *ssusb) {} #endif #if IS_ENABLED(CONFIG_USB_MTU3_DUAL_ROLE) int ssusb_otg_switch_init(struct ssusb_mtk *ssusb); void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb); int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on); #else static inline int ssusb_otg_switch_init(struct ssusb_mtk *ssusb) { return 0; } static inline void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb) {} static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) { return 0; } #endif #endif /* _MTU3_DR_H_ */
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-01-30 15:26:44 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-30 15:26:44 -0500
commit4be9993493bc7ee3fdf950a83bc050a3e6cf2a45 (patch)
treec619c15ad9a1231a1b9c2dbfeb997bd3d47dce18 /include/net/af_unix.h
parent30357d7d8aaf2a980ab17c2ce054b2b87e60af88 (diff)
parent1f8176f7352abfe1a424ac7eb845b4c2e7c31e5f (diff)
Merge branch 'mlx4-misc-improvements'
Tariq Toukan says: ==================== mlx4 misc improvements This patchset contains several improvements and cleanups from the team to the mlx4 Eth and core drivers. Series generated against net-next commit: 4e8f2fc1a55d Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net Thanks, Tariq. v3: * Patch 6/9: forgot to actually update the commit message in v2, now it is. v2: * Patch 1/9: used EOPNOTSUPP and not ENOTSUPP. * Patch 3/9: dropped, to be submitted separately in the future. * Patch 6/9: updated commit message. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/af_unix.h')