PCI: designware: Consolidate outbound iATU programming functions
authorJisheng Zhang <jszhang@marvell.com>
Thu, 30 Apr 2015 08:22:28 +0000 (16:22 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 May 2015 20:01:57 +0000 (15:01 -0500)
commit63503c87f06e0f2c8c951cada81221c5500188d8
treeeaff0dfdc3051037157bc2187664f11898347d3b
parent5b0f073899c4b229a6c40186ca7b37569840948e
PCI: designware: Consolidate outbound iATU programming functions

Currently, the outbound iATU programming functions are similar: the only
difference is index, type, addr and size.  Consolidate these functions into
one.  This saves about 1700 bytes in text:

   text    data     bss     dec     hex filename
   9276     204       4    9484    250c pcie-designware.o-before
   7532     204       4    7740    1e3c pcie-designware.o

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
drivers/pci/host/pcie-designware.c