usb: frmnet: Add support to use multiple transport functions
Current driver supports the single instance of control and data transport. Add support to use multiple control and data transport pairs per port (interface) basis. Control and data transport pair is passed by user space from /sys/class/android_usb/android0/f_rmnet/transports Also moved and renamed common function str_to_xport and xport_to_str to header file and updated respecitve callers of the function. Change-Id: Ib0ceff85a1224336f7f4929235b6a40b8f13e849 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* 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 __LINUX_USB_GADGET_RMNET_H__
|
||||
#define __LINUX_USB_GADGET_RMNET_H__
|
||||
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
struct usb_rmnet_pdata {
|
||||
unsigned num_instances;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user