Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] pci/search: cleanups, add to kernel-api.tmpl

Clean up kernel-doc comments in drivers/pci/search.c (line sizes and typos).

Enable that source file in DocBook/kernel-api.tmpl.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
d75763d2 0129a057

+26 -24
+1 -3
Documentation/DocBook/kernel-api.tmpl
··· 312 312 !Edrivers/pci/pci-driver.c 313 313 !Edrivers/pci/remove.c 314 314 !Edrivers/pci/pci-acpi.c 315 - <!-- kerneldoc does not understand __devinit 316 - X!Edrivers/pci/search.c 317 - --> 315 + !Edrivers/pci/search.c 318 316 !Edrivers/pci/msi.c 319 317 !Edrivers/pci/bus.c 320 318 <!-- FIXME: Removed for now since no structured comments in source
+25 -21
drivers/pci/search.c
··· 61 61 * @from: Previous PCI bus found, or %NULL for new search. 62 62 * 63 63 * Iterates through the list of known PCI busses. A new search is 64 - * initiated by passing %NULL to the @from argument. Otherwise if 64 + * initiated by passing %NULL as the @from argument. Otherwise if 65 65 * @from is not %NULL, searches continue from next device on the 66 66 * global list. 67 67 */ ··· 148 148 * @from: Previous PCI device found in search, or %NULL for new search. 149 149 * 150 150 * Iterates through the list of known PCI devices. If a PCI device is 151 - * found with a matching @vendor, @device, @ss_vendor and @ss_device, a pointer to its 152 - * device structure is returned. Otherwise, %NULL is returned. 153 - * A new search is initiated by passing %NULL to the @from argument. 154 - * Otherwise if @from is not %NULL, searches continue from next device on the global list. 151 + * found with a matching @vendor, @device, @ss_vendor and @ss_device, a 152 + * pointer to its device structure is returned. Otherwise, %NULL is returned. 153 + * A new search is initiated by passing %NULL as the @from argument. 154 + * Otherwise if @from is not %NULL, searches continue from next device 155 + * on the global list. 155 156 * 156 - * NOTE: Do not use this function anymore, use pci_get_subsys() instead, as 157 - * the pci device returned by this function can disappear at any moment in 157 + * NOTE: Do not use this function any more; use pci_get_subsys() instead, as 158 + * the PCI device returned by this function can disappear at any moment in 158 159 * time. 159 160 */ 160 161 static struct pci_dev * pci_find_subsys(unsigned int vendor, ··· 192 191 * @device: PCI device id to match, or %PCI_ANY_ID to match all device ids 193 192 * @from: Previous PCI device found in search, or %NULL for new search. 194 193 * 195 - * Iterates through the list of known PCI devices. If a PCI device is 196 - * found with a matching @vendor and @device, a pointer to its device structure is 194 + * Iterates through the list of known PCI devices. If a PCI device is found 195 + * with a matching @vendor and @device, a pointer to its device structure is 197 196 * returned. Otherwise, %NULL is returned. 198 - * A new search is initiated by passing %NULL to the @from argument. 199 - * Otherwise if @from is not %NULL, searches continue from next device on the global list. 197 + * A new search is initiated by passing %NULL as the @from argument. 198 + * Otherwise if @from is not %NULL, searches continue from next device 199 + * on the global list. 200 200 * 201 - * NOTE: Do not use this function anymore, use pci_get_device() instead, as 202 - * the pci device returned by this function can disappear at any moment in 201 + * NOTE: Do not use this function any more; use pci_get_device() instead, as 202 + * the PCI device returned by this function can disappear at any moment in 203 203 * time. 204 204 */ 205 205 struct pci_dev * ··· 217 215 * @ss_device: PCI subsystem device id to match, or %PCI_ANY_ID to match all device ids 218 216 * @from: Previous PCI device found in search, or %NULL for new search. 219 217 * 220 - * Iterates through the list of known PCI devices. If a PCI device is 221 - * found with a matching @vendor, @device, @ss_vendor and @ss_device, a pointer to its 218 + * Iterates through the list of known PCI devices. If a PCI device is found 219 + * with a matching @vendor, @device, @ss_vendor and @ss_device, a pointer to its 222 220 * device structure is returned, and the reference count to the device is 223 221 * incremented. Otherwise, %NULL is returned. A new search is initiated by 224 - * passing %NULL to the @from argument. Otherwise if @from is not %NULL, 222 + * passing %NULL as the @from argument. Otherwise if @from is not %NULL, 225 223 * searches continue from next device on the global list. 226 224 * The reference count for @from is always decremented if it is not %NULL. 227 225 */ ··· 264 262 * found with a matching @vendor and @device, the reference count to the 265 263 * device is incremented and a pointer to its device structure is returned. 266 264 * Otherwise, %NULL is returned. A new search is initiated by passing %NULL 267 - * to the @from argument. Otherwise if @from is not %NULL, searches continue 265 + * as the @from argument. Otherwise if @from is not %NULL, searches continue 268 266 * from next device on the global list. The reference count for @from is 269 267 * always decremented if it is not %NULL. 270 268 */ ··· 281 279 * @device: PCI device id to match, or %PCI_ANY_ID to match all device ids 282 280 * @from: Previous PCI device found in search, or %NULL for new search. 283 281 * 284 - * Iterates through the list of known PCI devices in the reverse order of pci_find_device(). 282 + * Iterates through the list of known PCI devices in the reverse order of 283 + * pci_find_device(). 285 284 * If a PCI device is found with a matching @vendor and @device, a pointer to 286 285 * its device structure is returned. Otherwise, %NULL is returned. 287 - * A new search is initiated by passing %NULL to the @from argument. 288 - * Otherwise if @from is not %NULL, searches continue from previous device on the global list. 286 + * A new search is initiated by passing %NULL as the @from argument. 287 + * Otherwise if @from is not %NULL, searches continue from previous device 288 + * on the global list. 289 289 */ 290 290 struct pci_dev * 291 291 pci_find_device_reverse(unsigned int vendor, unsigned int device, const struct pci_dev *from) ··· 321 317 * found with a matching @class, the reference count to the device is 322 318 * incremented and a pointer to its device structure is returned. 323 319 * Otherwise, %NULL is returned. 324 - * A new search is initiated by passing %NULL to the @from argument. 320 + * A new search is initiated by passing %NULL as the @from argument. 325 321 * Otherwise if @from is not %NULL, searches continue from next device 326 322 * on the global list. The reference count for @from is always decremented 327 323 * if it is not %NULL.