mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
[PATCH] USB: move usb-serial.h to include/linux/usb/
USB serial outside of the kernel tree can not build properly due to usb-serial.h being buried down in the source tree. This patch moves the location of the file to include/linux/usb and fixes up all of the usb serial drivers to handle the move properly. Cc: Sergei Organov <osv@javad.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
166ffccfd4
commit
a969888ce9
@ -13,7 +13,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static struct usb_device_id id_table [] = {
|
||||
{ USB_DEVICE(0x0c88, 0x17da) }, /* Kyocera Wireless KPC650/Passport */
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static struct usb_device_id id_table [] = {
|
||||
{ USB_DEVICE(0x16d5, 0x6501) }, /* AirData CDMA device */
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
|
||||
static int debug;
|
||||
|
@ -74,7 +74,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "belkin_sa.h"
|
||||
|
||||
static int debug;
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int usb_serial_device_match (struct device *dev, struct device_driver *drv)
|
||||
{
|
||||
|
@ -17,11 +17,10 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/console.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int debug;
|
||||
|
||||
#include "usb-serial.h"
|
||||
|
||||
struct usbcons_info {
|
||||
int magic;
|
||||
int break_flag;
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/usb.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/*
|
||||
* Version Information
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
#define CYBERJACK_LOCAL_BUF_SIZE 32
|
||||
|
||||
|
@ -59,11 +59,11 @@
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
#include <linux/serial.h>
|
||||
#include <linux/delay.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
#include "usb-serial.h"
|
||||
#include "cypress_m8.h"
|
||||
|
||||
|
||||
|
@ -246,7 +246,7 @@
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/wait.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/* Defines */
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int debug;
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */
|
||||
#define CPUCS_REG 0x7F92
|
||||
|
@ -257,7 +257,7 @@
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/serial.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "ftdi_sio.h"
|
||||
|
||||
/*
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static struct usb_device_id id_table [] = {
|
||||
{ USB_DEVICE(0x1404, 0xcddc) },
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/* the mode to be set when the port ist opened */
|
||||
static int initial_mode = 1;
|
||||
@ -42,8 +43,6 @@ static int initial_mode = 1;
|
||||
/* debug flag */
|
||||
static int debug = 0;
|
||||
|
||||
#include "usb-serial.h"
|
||||
|
||||
#define GARMIN_VENDOR_ID 0x091E
|
||||
|
||||
/*
|
||||
|
@ -17,8 +17,8 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include "usb-serial.h"
|
||||
|
||||
static int debug;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/*
|
||||
* Version Information
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <linux/wait.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "io_edgeport.h"
|
||||
#include "io_ionsp.h" /* info for the iosp messages */
|
||||
#include "io_16654.h" /* 16654 UART defines */
|
||||
|
@ -39,8 +39,8 @@
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/semaphore.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
#include "usb-serial.h"
|
||||
#include "io_16654.h"
|
||||
#include "io_usbvend.h"
|
||||
#include "io_ti.h"
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "ipaq.h"
|
||||
|
||||
#define KP_RETRIES 100
|
||||
|
@ -46,8 +46,8 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include "usb-serial.h"
|
||||
|
||||
/*
|
||||
* Version Information
|
||||
|
@ -57,7 +57,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/*
|
||||
* Version Information
|
||||
|
@ -107,7 +107,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "keyspan.h"
|
||||
|
||||
static int debug;
|
||||
|
@ -78,6 +78,7 @@
|
||||
#include <linux/workqueue.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int debug;
|
||||
|
||||
@ -107,8 +108,6 @@ struct ezusb_hex_record {
|
||||
#include "xircom_pgs_fw.h"
|
||||
#endif
|
||||
|
||||
#include "usb-serial.h"
|
||||
|
||||
/*
|
||||
* Version Information
|
||||
*/
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "kl5kusb105.h"
|
||||
|
||||
static int debug;
|
||||
|
@ -46,8 +46,8 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include "usb-serial.h"
|
||||
#include "kobil_sct.h"
|
||||
|
||||
static int debug;
|
||||
|
@ -75,7 +75,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "mct_u232.h"
|
||||
|
||||
/*
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <linux/tty_flip.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int debug;
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int debug;
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
#include <linux/tty_flip.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
/* Function prototypes */
|
||||
static int option_open(struct usb_serial_port *port, struct file *filp);
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "pl2303.h"
|
||||
|
||||
/*
|
||||
|
@ -71,7 +71,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
|
||||
#ifndef CONFIG_USB_SAFE_PADDED
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <linux/tty.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static struct usb_device_id id_table [] = {
|
||||
{ USB_DEVICE(0x1199, 0x0018) }, /* Sierra Wireless MC5720 */
|
||||
|
@ -83,8 +83,8 @@
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/semaphore.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
#include "usb-serial.h"
|
||||
#include "ti_usb_3410_5052.h"
|
||||
#include "ti_fw_3410.h" /* firmware image for 3410 */
|
||||
#include "ti_fw_5052.h" /* firmware image for 5052 */
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/smp_lock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "pl2303.h"
|
||||
|
||||
/*
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "visor.h"
|
||||
|
||||
/*
|
||||
|
@ -79,7 +79,7 @@
|
||||
#include <linux/usb.h>
|
||||
#include <linux/serial_reg.h>
|
||||
#include <linux/serial.h>
|
||||
#include "usb-serial.h"
|
||||
#include <linux/usb/serial.h>
|
||||
#include "whiteheat_fw.h" /* firmware for the ConnectTech WhiteHEAT device */
|
||||
#include "whiteheat.h" /* WhiteHEAT specific commands */
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
/*
|
||||
* USB Serial Converter driver
|
||||
* USB Serial Converter stuff
|
||||
*
|
||||
* Copyright (C) 1999 - 2005
|
||||
* Greg Kroah-Hartman (greg@kroah.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License.
|
||||
* the Free Software Foundation; version 2 of the License.
|
||||
*
|
||||
*/
|
||||
|
||||
@ -171,7 +171,7 @@ static inline void usb_set_serial_data (struct usb_serial *serial, void *data)
|
||||
* but before the device has been fully initialized by the usb_serial
|
||||
* subsystem. Use this function to download any firmware to the device,
|
||||
* or any other early initialization that might be needed.
|
||||
* Return 0 to continue on with the initialization sequence. Anything
|
||||
* Return 0 to continue on with the initialization sequence. Anything
|
||||
* else will abort it.
|
||||
* @attach: pointer to the driver's attach function.
|
||||
* This will be called when the struct usb_serial structure is fully set
|
Loading…
Reference in New Issue
Block a user