Skip to content

Commit dbfd51b

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI: Use same names in pcie_read_tlp_log() prototype and definition
pcie_read_tlp_log()'s prototype and function signature diverged due to changes made while applying. Make the parameters of pcie_read_tlp_log() named identically. Link: https://lore.kernel.org/r/20250114170840.1633-5-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
1 parent ede5d5d commit dbfd51b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

drivers/pci/pcie/tlp.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,21 @@
1515
* pcie_read_tlp_log - read TLP Header Log
1616
* @dev: PCIe device
1717
* @where: PCI Config offset of TLP Header Log
18-
* @tlp_log: TLP Log structure to fill
18+
* @log: TLP Log structure to fill
1919
*
20-
* Fill @tlp_log from TLP Header Log registers, e.g., AER or DPC.
20+
* Fill @log from TLP Header Log registers, e.g., AER or DPC.
2121
*
2222
* Return: 0 on success and filled TLP Log structure, <0 on error.
2323
*/
2424
int pcie_read_tlp_log(struct pci_dev *dev, int where,
25-
struct pcie_tlp_log *tlp_log)
25+
struct pcie_tlp_log *log)
2626
{
2727
int i, ret;
2828

29-
memset(tlp_log, 0, sizeof(*tlp_log));
29+
memset(log, 0, sizeof(*log));
3030

3131
for (i = 0; i < PCIE_STD_NUM_TLP_HEADERLOG; i++) {
32-
ret = pci_read_config_dword(dev, where + i * 4,
33-
&tlp_log->dw[i]);
32+
ret = pci_read_config_dword(dev, where + i * 4, &log->dw[i]);
3433
if (ret)
3534
return pcibios_err_to_errno(ret);
3635
}

0 commit comments

Comments
 (0)