1. 21 12月, 2006 1 次提交
    • D
      USB: gadget driver unbind() is optional; section fixes; misc · 6bea476c
      David Brownell 提交于
      Allow gadget drivers to omit the unbind() method.  When they're
      statically linked, that's an appropriate memory saving tweak.
      
      Similarly, provide consistent/simpler handling for a should-not-happen
      error case:  removing a peripheral controller driver when a gadget
      driver is still loaded.  Such code dates back to early versions of the
      first implementation of the gadget API, and has never been triggered.
      
      Includes relevant section annotation fixs for gmidi.c, file_storage.c,
      and serial.c; we don't yet have an "init or exit" annotation.  Also
      some whitespace fixes in gmidi.c (space at EOL, before tabs, etc).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6bea476c
  2. 08 12月, 2006 1 次提交
  3. 04 10月, 2006 1 次提交
  4. 02 10月, 2006 1 次提交
    • S
      [PATCH] namespaces: utsname: use init_utsname when appropriate · 96b644bd
      Serge E. Hallyn 提交于
      In some places, particularly drivers and __init code, the init utsns is the
      appropriate one to use.  This patch replaces those with a the init_utsname
      helper.
      
      Changes: Removed several uses of init_utsname().  Hope I picked all the
      	right ones in net/ipv4/ipconfig.c.  These are now changed to
      	utsname() (the per-process namespace utsname) in the previous
      	patch (2/7)
      
      [akpm@osdl.org: CIFS fix]
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Cc: Kirill Korotaev <dev@openvz.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Herbert Poetzl <herbert@13thfloor.at>
      Cc: Andrey Savochkin <saw@sw.ru>
      Cc: Serge Hallyn <serue@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      96b644bd
  5. 28 9月, 2006 1 次提交
    • B
      USB: gmidi: New USB MIDI Gadget class driver. · f2ebf92c
      Ben Williamson 提交于
      This driver is glue between the USB gadget interface
      and the ALSA MIDI interface. It allows us to appear
      as a MIDI Streaming device to a host system on the
      other end of a USB cable.
      
      This includes linux/usb/audio.h and linux/usb/midi.h
      containing definitions from the relevant USB specifications
      for USB audio and USB MIDI devices.
      
      The following changes have been made since the first RFC
      posting:
      
      * Bug fixes to endpoint handling.
      * Workaround for USB_REQ_SET_CONFIGURATION handling,
        not understood yet.
      * Added SND and SND_RAWMIDI dependencies in Kconfig.
      * Moved usb_audio.h and usb_midi.h to usb/*.h
      * Added module parameters for ALSA card index and id.
      * Added module parameters for USB descriptor IDs and strings.
      * Removed some unneeded stuff inherited from zero.c, more to go.
      * Provide DECLARE_* macros for the variable-length structs.
      * Use kmalloc instead of usb_ep_alloc_buffer.
      * Limit source to 80 columns.
      * Return actual error code instead of -ENOMEM in a few places.
      Signed-off-by: NBen Williamson <ben.williamson@greyinnovation.com>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f2ebf92c