2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 18:24:23 +08:00
linux-next/include/linux/usb
Greg Kroah-Hartman 1143832eca USB: serial: ports: add minor and port number
The usb_serial_port structure had the number field, which was the minor
number for the port, which almost no one really cared about.  They
really wanted the number of the port within the device, which you had to
subtract from the minor of the parent usb_serial_device structure.  To
clean this up, provide the real minor number of the port, and the number
of the port within the serial device separately, as these numbers might
not be related in the future.

Bonus is that this cleans up a lot of logic in the drivers, and saves
lines overall.

Tested-by: Tobias Winter <tobias@linuxdingsda.de>
Reviewed-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

--
 drivers/staging/serqt_usb2/serqt_usb2.c |   21 +++--------
 drivers/usb/serial/ark3116.c            |    2 -
 drivers/usb/serial/bus.c                |    6 +--
 drivers/usb/serial/console.c            |    2 -
 drivers/usb/serial/cp210x.c             |    2 -
 drivers/usb/serial/cypress_m8.c         |    4 +-
 drivers/usb/serial/digi_acceleport.c    |    6 ---
 drivers/usb/serial/f81232.c             |    5 +-
 drivers/usb/serial/garmin_gps.c         |    6 +--
 drivers/usb/serial/io_edgeport.c        |   58 ++++++++++++--------------------
 drivers/usb/serial/io_ti.c              |   21 ++++-------
 drivers/usb/serial/keyspan.c            |   29 +++++++---------
 drivers/usb/serial/metro-usb.c          |    4 +-
 drivers/usb/serial/mos7720.c            |   37 +++++++++-----------
 drivers/usb/serial/mos7840.c            |   52 +++++++++-------------------
 drivers/usb/serial/opticon.c            |    2 -
 drivers/usb/serial/pl2303.c             |    2 -
 drivers/usb/serial/quatech2.c           |    7 +--
 drivers/usb/serial/sierra.c             |    2 -
 drivers/usb/serial/ti_usb_3410_5052.c   |   10 ++---
 drivers/usb/serial/usb-serial.c         |    7 ++-
 drivers/usb/serial/usb_wwan.c           |    2 -
 drivers/usb/serial/whiteheat.c          |   20 +++++------
 include/linux/usb/serial.h              |    6 ++-
 24 files changed, 133 insertions(+), 180 deletions(-)
2013-06-10 14:46:40 -07:00
..
association.h
atmel_usba_udc.h
audio-v2.h ALSA: snd-usb: handle raw data format of UAC2 devices 2013-03-18 08:47:13 +01:00
audio.h
c67x00.h
cdc_ncm.h net: cdc_ncm, cdc_mbim: allow user to prefer NCM for backwards compatibility 2013-03-17 11:59:03 -04:00
cdc-wdm.h USB: cdc-wdm: implement IOCTL_WDM_MAX_COMMAND 2013-03-25 13:32:20 -07:00
ch9.h usb: common: introduce usb_state_string() 2013-03-18 11:17:11 +02:00
chipidea.h
composite.h usb: gadget: the start of the configfs interface 2013-04-03 14:43:32 +03:00
dwc3-omap.h usb: dwc3: dwc3-omap: return -EPROBE_DEFER if probe has not yet executed 2013-03-18 11:18:14 +02:00
ehci_def.h
ehci_pdriver.h
ezusb.h
functionfs.h
g_hid.h
gadget_configfs.h usb: gadget: the start of the configfs interface 2013-04-03 14:43:32 +03:00
gadget.h Correct typo "supperspeed" to "superspeed". 2013-05-15 17:19:15 +03:00
gpio_vbus.h
hcd.h Allow the USB HCD to create Wireless USB root hubs 2013-06-03 10:52:40 -07:00
input.h
intel_mid_otg.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
msm_hsusb_hw.h
msm_hsusb.h
musb-omap.h
musb-ux500.h usb: phy: ab8500-usb: update irq handling code 2013-03-18 14:41:33 +02:00
musb.h ARM: OMAP2: MUSB: Specify omap4 has mailbox 2013-02-06 11:40:13 -08:00
net2280.h
nop-usb-xceiv.h usb: phy: nop: Add some parameters to platform data 2013-03-18 11:13:54 +02:00
ohci_pdriver.h
omap_control_usb.h usb: omap_control_usb: fix compile warning 2013-02-06 11:40:14 -08:00
omap_usb.h usb: phy: add a new driver for usb3 phy 2013-01-25 13:02:50 +02:00
otg.h usb: otg: move usb_otg_state_string to usb-common.c 2013-03-18 11:18:03 +02:00
phy_companion.h
phy.h usb: phy: return -ENXIO when PHY layer isn't enabled 2013-03-18 11:18:26 +02:00
quirks.h
r8a66597.h
renesas_usbhs.h usb: renesas_usbhs: fixup sparse errors for common.c 2013-04-02 11:42:48 +03:00
rndis_host.h
samsung_usb_phy.h ARM: EXYNOS: Update & move usb-phy types to generic include layer 2013-01-23 13:39:07 +02:00
serial.h USB: serial: ports: add minor and port number 2013-06-10 14:46:40 -07:00
sl811.h
storage.h
tegra_usb_phy.h usb: phy: tegra: don't call into tegra-ehci directly 2013-04-23 12:50:38 -07:00
tilegx.h
uas.h
ulpi.h usb: ulpi: Define a *otg_ulpi_create no-op 2013-03-20 17:30:40 +02:00
usbnet.h usbnet: allow status interrupt URB to always be active 2013-05-08 13:13:29 -07:00
wusb-wa.h USB: wusbcore: add HWA-specific fields to usb_rpipe_descriptor 2013-06-06 12:14:39 -07:00
wusb.h