File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 15
15
* pcie_read_tlp_log - read TLP Header Log
16
16
* @dev: PCIe device
17
17
* @where: PCI Config offset of TLP Header Log
18
- * @tlp_log : TLP Log structure to fill
18
+ * @log : TLP Log structure to fill
19
19
*
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.
21
21
*
22
22
* Return: 0 on success and filled TLP Log structure, <0 on error.
23
23
*/
24
24
int pcie_read_tlp_log (struct pci_dev * dev , int where ,
25
- struct pcie_tlp_log * tlp_log )
25
+ struct pcie_tlp_log * log )
26
26
{
27
27
int i , ret ;
28
28
29
- memset (tlp_log , 0 , sizeof (* tlp_log ));
29
+ memset (log , 0 , sizeof (* log ));
30
30
31
31
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 ]);
34
33
if (ret )
35
34
return pcibios_err_to_errno (ret );
36
35
}
You can’t perform that action at this time.
0 commit comments