Skip to content

Commit cffb2fa

Browse files
rddunlapjbarnes993
authored andcommitted
docbooks: add/fix PCI kernel-doc
Add drivers/pci/*.c source files to DocBook/kernel-api.tmpl and update those pci/*.c source files that need kernel-doc fixes. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 681bf59 commit cffb2fa

5 files changed

Lines changed: 18 additions & 9 deletions

File tree

‎Documentation/DocBook/kernel-api.tmpl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,20 @@ X!Ekernel/module.c
190190
!Edrivers/pci/pci.c
191191
!Edrivers/pci/pci-driver.c
192192
!Edrivers/pci/remove.c
193-
!Edrivers/pci/pci-acpi.c
194193
!Edrivers/pci/search.c
195194
!Edrivers/pci/msi.c
196195
!Edrivers/pci/bus.c
196+
!Edrivers/pci/access.c
197+
!Edrivers/pci/irq.c
198+
!Edrivers/pci/htirq.c
197199
<!-- FIXME: Removed for now since no structured comments in source
198200
X!Edrivers/pci/hotplug.c
199201
-->
200202
!Edrivers/pci/probe.c
203+
!Edrivers/pci/slot.c
201204
!Edrivers/pci/rom.c
202205
!Edrivers/pci/iov.c
206+
!Idrivers/pci/pci-sysfs.c
203207
</sect1>
204208
<sect1><title>PCI Hotplug Support Library</title>
205209
!Edrivers/pci/hotplug/pci_hotplug_core.c

‎drivers/pci/access.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ EXPORT_SYMBOL(pci_read_vpd);
8787
* pci_write_vpd - Write entry to Vital Product Data
8888
* @dev: pci device struct
8989
* @pos: offset in vpd space
90-
* @count: number of bytes to read
91-
* @val: value to write
90+
* @count: number of bytes to write
91+
* @buf: buffer containing write data
9292
*
9393
*/
9494
ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf)

‎drivers/pci/htirq.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ int ht_create_irq(struct pci_dev *dev, int idx)
158158

159159
/**
160160
* ht_destroy_irq - destroy an irq created with ht_create_irq
161+
* @irq: irq to be destroyed
161162
*
162163
* This reverses ht_create_irq removing the specified irq from
163164
* existence. The irq should be free before this happens.

‎drivers/pci/pci-sysfs.c‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
741743
static 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
*/
800802
static 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

‎drivers/pci/slot.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ EXPORT_SYMBOL_GPL(pci_create_slot);
264264

265265
/**
266266
* pci_renumber_slot - update %struct pci_slot -> number
267-
* @slot - %struct pci_slot to update
268-
* @slot_nr - new number for slot
267+
* @slot: &struct pci_slot to update
268+
* @slot_nr: new number for slot
269269
*
270270
* The primary purpose of this interface is to allow callers who earlier
271271
* created a placeholder slot in pci_create_slot() by passing a -1 as

0 commit comments

Comments
 (0)