summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-08-17 14:17:58 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-08-17 14:43:38 -0500
commit446fc23fb6f0cab15011d7daae856091856a65cc (patch)
treed3aac6245e18b0805805516380a1bac20764108f /Kconfig
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
PCI: designware: Return data directly from dw_pcie_readl_rc()
dw_pcie_readl_rc() reads a u32 value. Previously we stored that value in space supplied by the caller. Return the u32 value directly instead. This makes the calling code read better and makes it obvious that the caller need not initialize the storage. In the following example it isn't clear whether "val" is initialized before being used: dw_pcie_readl_rc(pp, PCI_COMMAND, &val); if (val & PCI_COMMAND_MEMORY) ... No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions