usb: gadget: remove gadget_chips.h
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 6 Aug 2015 12:11:16 +0000 (14:11 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Aug 2015 14:35:20 +0000 (09:35 -0500)
This header file contains helpers for quirks based on UDC controller name.
Since we have generic quirk bitfields in usb_gadget structure for all of
these quirks we don't need to have this header any longer.

This patch removes gadget_chips.h file and makes sure that it's no longer
included anywhere in kernel sources.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
15 files changed:
drivers/usb/gadget/epautoconf.c
drivers/usb/gadget/function/f_acm.c
drivers/usb/gadget/function/f_mass_storage.c
drivers/usb/gadget/function/f_obex.c
drivers/usb/gadget/function/f_serial.c
drivers/usb/gadget/function/f_sourcesink.c
drivers/usb/gadget/function/u_ether.h
drivers/usb/gadget/function/u_uac1.h
drivers/usb/gadget/legacy/audio.c
drivers/usb/gadget/legacy/gmidi.c
drivers/usb/gadget/legacy/hid.c
drivers/usb/gadget/legacy/nokia.c
drivers/usb/gadget/legacy/printer.c
drivers/usb/gadget/legacy/serial.c
drivers/usb/gadget/udc/gadget_chips.h [deleted file]

index 16c1cc90c406b8c73258dd54c45546402923aff5..978435a5103875cf29890cbec24f5884ce3448a4 100644 (file)
@@ -20,8 +20,6 @@
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 
-#include "gadget_chips.h"
-
 /**
  * usb_ep_autoconfig_ss() - choose an endpoint matching the ep
  * descriptor and ep companion descriptor
index aad8165e98ef84d314f74826e97d1bd0641a5b95..be9df09fde26508c6b658cd0686681fb43e1d4bb 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/err.h>
 
 #include "u_serial.h"
-#include "gadget_chips.h"
 
 
 /*
index 04c3bb6e9dcd132399f2fa13700ab28a78ebebbb..11a7f5aa955baeaa01fee53218466a7037b6e3be 100644 (file)
 #include <linux/usb/gadget.h>
 #include <linux/usb/composite.h>
 
-#include "gadget_chips.h"
 #include "configfs.h"
 
 
index 2682d59f56755272b3ff79926352bec171dcdf76..5460426057eb232d13e6a071a47f114fb8cd4e14 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/module.h>
 
 #include "u_serial.h"
-#include "gadget_chips.h"
 
 
 /*
index 2e02dfabc7ae18394315de1f692d6abfc9f0f996..1d162e200e831ce1320a8e3d3f36f3bbd82b5a92 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/device.h>
 
 #include "u_serial.h"
-#include "gadget_chips.h"
 
 
 /*
index e6af1719d851964b0da5ccaad3bcbdc0b000da72..cbfaf86fe45652911744055d6549a88c88b056d3 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/err.h>
 
 #include "g_zero.h"
-#include "gadget_chips.h"
 #include "u_f.h"
 
 /*
index 1384f000bd80838008023d3c7d388c5890b8ac4d..c77145bd6b5b94f65b8531f2ab061c2770edbae5 100644 (file)
@@ -20,8 +20,6 @@
 #include <linux/usb/cdc.h>
 #include <linux/netdevice.h>
 
-#include "gadget_chips.h"
-
 #define QMULT_DEFAULT 5
 
 /*
index fe386df6dd3e67843c597ee0301298a01c490ee7..5c2ac8e8456d83cf4c7c462cb45eb5475932c8ad 100644 (file)
@@ -21,8 +21,6 @@
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 
-#include "gadget_chips.h"
-
 #define FILE_PCM_PLAYBACK      "/dev/snd/pcmC0D0p"
 #define FILE_PCM_CAPTURE       "/dev/snd/pcmC0D0c"
 #define FILE_CONTROL           "/dev/snd/controlC0"
index 9b2c1c68746bc1328b39bd49b1e3bca6f867cdd3..685cf3b4b78f8b47c3ea110bafc7637ec043c8d0 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/module.h>
 #include <linux/usb/composite.h>
 
-#include "gadget_chips.h"
 #define DRIVER_DESC            "Linux USB Audio Gadget"
 #define DRIVER_VERSION         "Feb 2, 2012"
 
index 650568de0de3e9fc9ebf3c3df0837ab405ac9506..8a18348ae86eef3807fabc066c12c143a1ac8da2 100644 (file)
@@ -35,8 +35,6 @@
 #include <linux/usb/audio.h>
 #include <linux/usb/midi.h>
 
-#include "gadget_chips.h"
-
 #include "u_midi.h"
 
 /*-------------------------------------------------------------------------*/
index e4874d3183dcc939a8f20767dcb4da7a173308ab..7e5d2c48476e568021fa5c550040c999c3cfa7b0 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/usb/composite.h>
 #include <linux/usb/g_hid.h>
 
-#include "gadget_chips.h"
 #define DRIVER_DESC            "HID Gadget"
 #define DRIVER_VERSION         "2010/03/16"
 
index c20f3b58f12636616d065ee264eb90a91ea57acb..8b3f6fb1825d56a7266eeb5c09ce115e60f26be8 100644 (file)
@@ -23,7 +23,6 @@
 #include "u_ether.h"
 #include "u_phonet.h"
 #include "u_ecm.h"
-#include "gadget_chips.h"
 #include "f_mass_storage.h"
 
 /* Defines */
index 0c1fc0622d0901c8876560654bda9ac18493da78..a22d30a4def1e0406512608d22aec7eaefd67561 100644 (file)
@@ -19,8 +19,6 @@
 #include <linux/usb/gadget.h>
 #include <linux/usb/g_printer.h>
 
-#include "gadget_chips.h"
-
 USB_GADGET_COMPOSITE_OPTIONS();
 
 #define DRIVER_DESC            "Printer Gadget"
index 9836d164469ab55a7b873ef8a0457081c5287db5..c5d42e0347a94cbd190c7162626ec9177f130662 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/tty_flip.h>
 
 #include "u_serial.h"
-#include "gadget_chips.h"
 
 
 /* Defines */
diff --git a/drivers/usb/gadget/udc/gadget_chips.h b/drivers/usb/gadget/udc/gadget_chips.h
deleted file mode 100644 (file)
index bcd04bc..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * USB device controllers have lots of quirks.  Use these macros in
- * gadget drivers or other code that needs to deal with them, and which
- * autoconfigures instead of using early binding to the hardware.
- *
- * This SHOULD eventually work like the ARM mach_is_*() stuff, driven by
- * some config file that gets updated as new hardware is supported.
- * (And avoiding all runtime comparisons in typical one-choice configs!)
- *
- * NOTE:  some of these controller drivers may not be available yet.
- * Some are available on 2.4 kernels; several are available, but not
- * yet pushed in the 2.6 mainline tree.
- */
-
-#ifndef __GADGET_CHIPS_H
-#define __GADGET_CHIPS_H
-
-#include <linux/usb/gadget.h>
-
-/*
- * NOTICE: the entries below are alphabetical and should be kept
- * that way.
- *
- * Always be sure to add new entries to the correct position or
- * accept the bashing later.
- *
- * If you have forgotten the alphabetical order let VIM/EMACS
- * do that for you.
- */
-#define gadget_is_at91(g)              (!strcmp("at91_udc", (g)->name))
-#define gadget_is_goku(g)              (!strcmp("goku_udc", (g)->name))
-#define gadget_is_musbhdrc(g)          (!strcmp("musb-hdrc", (g)->name))
-#define gadget_is_net2280(g)           (!strcmp("net2280", (g)->name))
-#define gadget_is_pxa(g)               (!strcmp("pxa25x_udc", (g)->name))
-#define gadget_is_pxa27x(g)            (!strcmp("pxa27x_udc", (g)->name))
-
-/**
- * gadget_supports_altsettings - return true if altsettings work
- * @gadget: the gadget in question
- */
-static inline bool gadget_supports_altsettings(struct usb_gadget *gadget)
-{
-       /* PXA 21x/25x/26x has no altsettings at all */
-       if (gadget_is_pxa(gadget))
-               return false;
-
-       /* PXA 27x and 3xx have *broken* altsetting support */
-       if (gadget_is_pxa27x(gadget))
-               return false;
-
-       /* Everything else is *presumably* fine ... */
-       return true;
-}
-
-#endif /* __GADGET_CHIPS_H */
This page took 0.036361 seconds and 5 git commands to generate.