[PATCH 00/34] staging: bcm: A larger cleanup

Joe Perches joe at perches.com
Tue Jan 10 16:53:54 UTC 2012


A larger style cleanup.

This code is quite out of kernel style and many more
patches could be done to remove additional typedefs.

This is just a start.

Joe Perches (34):
  staging: bcm: Reindent source
  staging: bcm: Convert spaces to tabs
  staging: bcm: Cuddle braces
  staging: bcm: Add space after if/while/for/switch
  staging: bcm: for loop neatening
  staging: bcm: Remove trailing whitespace
  staging: bcm: Add space after comma
  staging: bcm: Convert USHORT to unsigned short
  staging: bcm: Convert typedef PUSHORT to unsigned short *
  staging: bcm: Convert typedef INT to int
  staging: bcm: Remove unused typedef PINT
  staging: bcm: Remove typedef CHAR, use char
  staging: bcm: Remove typedef PCHAR
  staging: bcm: Remove unused typedef SHORT
  staging: bcm: Remove unused typedef PSHORT
  staging: bcm: Convert typedef UCHAR to unsigned char
  staging: bcm: Convert typedef PUCHAR to unsigned char *
  staging: bcm: Convert typedef VOID to void
  staging: bcm: Convert typedef PVOID to void *
  staging: bcm: Convert typedef UINT to unsigned int
  staging: bcm: Convert typedef PUINT to unsigned int *
  staging: bcm: Convert typedef LONG to long
  staging: bcm: Remove unused typedef PLONG
  staging: bcm: Convert typedef ULONG to unsigned long
  staging: bcm: Convert typedef PULONG to unsigned long *
  staging: bcm: Convert typedef ULONG64 to unsigned long long
  staging: bcm: Convert typedef BUINT_8 to unsigned char
  staging: bcm: Convert typedef B_UINT16 to unsigned short
  staging: bcm: Convert typedef B_UINT32 to unsigned long
  staging: bcm: Convert define DWORD to unsigned int
  staging: bcm: Remove unused typedef DWORD
  staging: bcm: Convert typedef LARGE_INTEGER to unsigned long long
  staging: bcm: Convert typedef UINT32 to unsigned int
  staging: bcm: Remove spaces before semicolons

 drivers/staging/bcm/Adapter.h                  |  691 ++--
 drivers/staging/bcm/Bcmchar.c                  |  413 ++--
 drivers/staging/bcm/Bcmnet.c                   |   40 +-
 drivers/staging/bcm/CmHost.c                   | 1592 ++++-----
 drivers/staging/bcm/CmHost.h                   |  176 +-
 drivers/staging/bcm/DDRInit.c                  | 2029 ++++++------
 drivers/staging/bcm/Debug.h                    |  137 +-
 drivers/staging/bcm/HandleControlPacket.c      |   54 +-
 drivers/staging/bcm/HostMIBSInterface.h        |  264 +-
 drivers/staging/bcm/IPv6Protocol.c             |  371 +--
 drivers/staging/bcm/IPv6ProtocolHdr.h          |  107 +-
 drivers/staging/bcm/InterfaceAdapter.h         |   79 +-
 drivers/staging/bcm/InterfaceDld.c             |   34 +-
 drivers/staging/bcm/InterfaceIdleMode.c        |  204 +-
 drivers/staging/bcm/InterfaceIdleMode.h        |   11 +-
 drivers/staging/bcm/InterfaceInit.c            |   88 +-
 drivers/staging/bcm/InterfaceInit.h            |   19 +-
 drivers/staging/bcm/InterfaceIsr.c             |  168 +-
 drivers/staging/bcm/InterfaceIsr.h             |    7 +-
 drivers/staging/bcm/InterfaceMacros.h          |    2 +-
 drivers/staging/bcm/InterfaceMisc.c            |   63 +-
 drivers/staging/bcm/InterfaceMisc.h            |   48 +-
 drivers/staging/bcm/InterfaceRx.c              |  159 +-
 drivers/staging/bcm/InterfaceRx.h              |    1 -
 drivers/staging/bcm/InterfaceTx.c              |  119 +-
 drivers/staging/bcm/InterfaceTx.h              |    3 +-
 drivers/staging/bcm/Ioctl.h                    |  295 +-
 drivers/staging/bcm/LeakyBucket.c              |  304 +-
 drivers/staging/bcm/Macros.h                   |   10 +-
 drivers/staging/bcm/Misc.c                     |  327 +-
 drivers/staging/bcm/PHSDefines.h               |   82 +-
 drivers/staging/bcm/PHSModule.c                | 1256 ++++----
 drivers/staging/bcm/PHSModule.h                |   40 +-
 drivers/staging/bcm/Protocol.h                 |   78 +-
 drivers/staging/bcm/Prototypes.h               |  194 +-
 drivers/staging/bcm/Qos.c                      |  747 ++---
 drivers/staging/bcm/Queue.h                    |   48 +-
 drivers/staging/bcm/Transmit.c                 |  183 +-
 drivers/staging/bcm/Typedefs.h                 |   32 +-
 drivers/staging/bcm/Version.h                  |    8 +-
 drivers/staging/bcm/cntrl_SignalingInterface.h |  370 ++--
 drivers/staging/bcm/headers.h                  |    4 +-
 drivers/staging/bcm/hostmibs.c                 |   24 +-
 drivers/staging/bcm/led_control.c              |  379 ++--
 drivers/staging/bcm/led_control.h              |   73 +-
 drivers/staging/bcm/nvm.c                      | 4127 +++++++++++-------------
 drivers/staging/bcm/nvm.h                      |  234 +-
 drivers/staging/bcm/sort.c                     |    8 +-
 drivers/staging/bcm/target_params.h            |  109 +-
 drivers/staging/bcm/vendorspecificextn.c       |   25 +-
 drivers/staging/bcm/vendorspecificextn.h       |   20 +-
 51 files changed, 7330 insertions(+), 8526 deletions(-)

-- 
1.7.8.111.gad25c.dirty




More information about the devel mailing list