[PATCH 0/4] Code cleanup and small improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sets a callback that defines the maximum number of MSI applied to
designware driver for future easiness and also as an example, since
the callback currently defines the default value.

Does a code cleanup by replacing magic numbers without a easy meaning
by a well known define that helps the human compreension.

Fix of the first characters on comments and debug messages to maintain
coherency.

Replaces a division by 2 by a simple right shift rotation of 1 bit.

The patch set was made against Lorenzo's dwc-msi branch.

Gustavo Pimentel (4):
  PCI: dwc: designware: Define maximum number of vectors
  PCI: dwc: Replace lower into upper case characters in comments and
    debug printks
  PCI: dwc: Replace magic number by defines
  PCI: dwc: Replace division by 2 to right shift

 drivers/pci/dwc/pcie-designware-ep.c   | 16 +++----
 drivers/pci/dwc/pcie-designware-host.c | 77 +++++++++++++++++++---------------
 drivers/pci/dwc/pcie-designware-plat.c |  8 +++-
 drivers/pci/dwc/pcie-designware.c      | 22 +++++-----
 drivers/pci/dwc/pcie-designware.h      |  1 +
 5 files changed, 70 insertions(+), 54 deletions(-)

-- 
2.7.4





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux