Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174996
b: refs/heads/master
c: 396cda9
h: refs/heads/master
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 1d8c1b0 commit e77abb3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f0479e00a3fca9590ae8d9edc4e9c47b7fa0610
refs/heads/master: 396cda90d228d0851f3d64c7c85a1ecf6b8ae1e8
16 changes: 12 additions & 4 deletions trunk/drivers/usb/gadget/ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
#include <linux/kernel.h>
#include <linux/utsname.h>


#if defined USB_ETH_RNDIS
# undef USB_ETH_RNDIS
#endif
#ifdef CONFIG_USB_ETH_RNDIS
# define USB_ETH_RNDIS y
#endif

#include "u_ether.h"


Expand Down Expand Up @@ -66,7 +74,7 @@
#define DRIVER_DESC "Ethernet Gadget"
#define DRIVER_VERSION "Memorial Day 2008"

#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS
#define PREFIX "RNDIS/"
#else
#define PREFIX ""
Expand All @@ -87,7 +95,7 @@

static inline bool has_rndis(void)
{
#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS
return true;
#else
return false;
Expand All @@ -110,7 +118,7 @@ static inline bool has_rndis(void)

#include "f_ecm.c"
#include "f_subset.c"
#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS
#include "f_rndis.c"
#include "rndis.c"
#endif
Expand Down Expand Up @@ -251,7 +259,7 @@ static struct usb_configuration rndis_config_driver = {

/*-------------------------------------------------------------------------*/

#ifdef CONFIG_USB_ETH_EEM
#ifdef USB_ETH_EEM
static int use_eem = 1;
#else
static int use_eem;
Expand Down
13 changes: 8 additions & 5 deletions trunk/drivers/usb/gadget/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
#include <linux/utsname.h>


#if defined CONFIG_USB_G_MULTI_RNDIS
# define CONFIG_USB_ETH_RNDIS y
#if defined USB_ETH_RNDIS
# undef USB_ETH_RNDIS
#endif
#ifdef CONFIG_USB_ETH_RNDIS
# define USB_ETH_RNDIS y
#endif


Expand Down Expand Up @@ -59,7 +62,7 @@

#include "f_ecm.c"
#include "f_subset.c"
#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS
# include "f_rndis.c"
# include "rndis.c"
#endif
Expand Down Expand Up @@ -150,7 +153,7 @@ FSG_MODULE_PARAMETERS(/* no prefix */, mod_data);
static struct fsg_common *fsg_common;


#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS

static int __init rndis_do_config(struct usb_configuration *c)
{
Expand Down Expand Up @@ -292,7 +295,7 @@ static int __init multi_bind(struct usb_composite_dev *cdev)
strings_dev[STRING_PRODUCT_IDX].id = status;
device_desc.iProduct = status;

#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS
/* register our first configuration */
status = usb_add_config(cdev, &rndis_config_driver);
if (status < 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/u_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
int ecm_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
int eem_bind_config(struct usb_configuration *c);

#ifdef CONFIG_USB_ETH_RNDIS
#ifdef USB_ETH_RNDIS

int rndis_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);

Expand Down

0 comments on commit e77abb3

Please sign in to comment.