Commit adab4339 authored by Robert Baldyga's avatar Robert Baldyga Committed by Felipe Balbi

usb: gadget: remove gadget_chips.h

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: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 26b8aa45
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <linux/usb/ch9.h> #include <linux/usb/ch9.h>
#include <linux/usb/gadget.h> #include <linux/usb/gadget.h>
#include "gadget_chips.h"
/** /**
* usb_ep_autoconfig_ss() - choose an endpoint matching the ep * usb_ep_autoconfig_ss() - choose an endpoint matching the ep
* descriptor and ep companion descriptor * descriptor and ep companion descriptor
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/err.h> #include <linux/err.h>
#include "u_serial.h" #include "u_serial.h"
#include "gadget_chips.h"
/* /*
......
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
#include <linux/usb/gadget.h> #include <linux/usb/gadget.h>
#include <linux/usb/composite.h> #include <linux/usb/composite.h>
#include "gadget_chips.h"
#include "configfs.h" #include "configfs.h"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/module.h> #include <linux/module.h>
#include "u_serial.h" #include "u_serial.h"
#include "gadget_chips.h"
/* /*
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <linux/device.h> #include <linux/device.h>
#include "u_serial.h" #include "u_serial.h"
#include "gadget_chips.h"
/* /*
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/err.h> #include <linux/err.h>
#include "g_zero.h" #include "g_zero.h"
#include "gadget_chips.h"
#include "u_f.h" #include "u_f.h"
/* /*
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <linux/usb/cdc.h> #include <linux/usb/cdc.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include "gadget_chips.h"
#define QMULT_DEFAULT 5 #define QMULT_DEFAULT 5
/* /*
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include <sound/pcm.h> #include <sound/pcm.h>
#include <sound/pcm_params.h> #include <sound/pcm_params.h>
#include "gadget_chips.h"
#define FILE_PCM_PLAYBACK "/dev/snd/pcmC0D0p" #define FILE_PCM_PLAYBACK "/dev/snd/pcmC0D0p"
#define FILE_PCM_CAPTURE "/dev/snd/pcmC0D0c" #define FILE_PCM_CAPTURE "/dev/snd/pcmC0D0c"
#define FILE_CONTROL "/dev/snd/controlC0" #define FILE_CONTROL "/dev/snd/controlC0"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/usb/composite.h> #include <linux/usb/composite.h>
#include "gadget_chips.h"
#define DRIVER_DESC "Linux USB Audio Gadget" #define DRIVER_DESC "Linux USB Audio Gadget"
#define DRIVER_VERSION "Feb 2, 2012" #define DRIVER_VERSION "Feb 2, 2012"
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include <linux/usb/audio.h> #include <linux/usb/audio.h>
#include <linux/usb/midi.h> #include <linux/usb/midi.h>
#include "gadget_chips.h"
#include "u_midi.h" #include "u_midi.h"
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <linux/usb/composite.h> #include <linux/usb/composite.h>
#include <linux/usb/g_hid.h> #include <linux/usb/g_hid.h>
#include "gadget_chips.h"
#define DRIVER_DESC "HID Gadget" #define DRIVER_DESC "HID Gadget"
#define DRIVER_VERSION "2010/03/16" #define DRIVER_VERSION "2010/03/16"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "u_ether.h" #include "u_ether.h"
#include "u_phonet.h" #include "u_phonet.h"
#include "u_ecm.h" #include "u_ecm.h"
#include "gadget_chips.h"
#include "f_mass_storage.h" #include "f_mass_storage.h"
/* Defines */ /* Defines */
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include <linux/usb/gadget.h> #include <linux/usb/gadget.h>
#include <linux/usb/g_printer.h> #include <linux/usb/g_printer.h>
#include "gadget_chips.h"
USB_GADGET_COMPOSITE_OPTIONS(); USB_GADGET_COMPOSITE_OPTIONS();
#define DRIVER_DESC "Printer Gadget" #define DRIVER_DESC "Printer Gadget"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/tty_flip.h> #include <linux/tty_flip.h>
#include "u_serial.h" #include "u_serial.h"
#include "gadget_chips.h"
/* Defines */ /* Defines */
......
/*
* 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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment