@@ -492,6 +492,7 @@ write_vpd_attr(struct kobject *kobj, struct bin_attribute *bin_attr,
492492/**
493493 * pci_read_legacy_io - read byte(s) from legacy I/O port space
494494 * @kobj: kobject corresponding to file to read from
495+ * @bin_attr: struct bin_attribute for this file
495496 * @buf: buffer to store results
496497 * @off: offset into legacy I/O port space
497498 * @count: number of bytes to read
@@ -517,6 +518,7 @@ pci_read_legacy_io(struct kobject *kobj, struct bin_attribute *bin_attr,
517518/**
518519 * pci_write_legacy_io - write byte(s) to legacy I/O port space
519520 * @kobj: kobject corresponding to file to read from
521+ * @bin_attr: struct bin_attribute for this file
520522 * @buf: buffer containing value to be written
521523 * @off: offset into legacy I/O port space
522524 * @count: number of bytes to write
@@ -733,9 +735,9 @@ pci_mmap_resource_wc(struct kobject *kobj, struct bin_attribute *attr,
733735
734736/**
735737 * pci_remove_resource_files - cleanup resource files
736- * @dev : dev to cleanup
738+ * @pdev : dev to cleanup
737739 *
738- * If we created resource files for @dev , remove them from sysfs and
740+ * If we created resource files for @pdev , remove them from sysfs and
739741 * free their resources.
740742 */
741743static void
@@ -793,9 +795,9 @@ static int pci_create_attr(struct pci_dev *pdev, int num, int write_combine)
793795
794796/**
795797 * pci_create_resource_files - create resource files in sysfs for @dev
796- * @dev : dev in question
798+ * @pdev : dev in question
797799 *
798- * Walk the resources in @dev creating files for each resource available.
800+ * Walk the resources in @pdev creating files for each resource available.
799801 */
800802static int pci_create_resource_files (struct pci_dev * pdev )
801803{
@@ -829,6 +831,7 @@ void __weak pci_remove_resource_files(struct pci_dev *dev) { return; }
829831/**
830832 * pci_write_rom - used to enable access to the PCI ROM display
831833 * @kobj: kernel object handle
834+ * @bin_attr: struct bin_attribute for this file
832835 * @buf: user input
833836 * @off: file offset
834837 * @count: number of byte in input
@@ -852,6 +855,7 @@ pci_write_rom(struct kobject *kobj, struct bin_attribute *bin_attr,
852855/**
853856 * pci_read_rom - read a PCI ROM
854857 * @kobj: kernel object handle
858+ * @bin_attr: struct bin_attribute for this file
855859 * @buf: where to put the data we read from the ROM
856860 * @off: file offset
857861 * @count: number of bytes to read
0 commit comments