Skip to contentSkip to conversation

kernel-doc: drivers/base fixes

PATCH New Randy.Dunlap 1 participant 1 message Oct 23, 2005 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-doc: drivers/base fixes

From: Randy Dunlap <[email protected]>

driver/base: add missing function parameters; eliminate all warnings.

---

 drivers/base/core.c   |    4 ++--
 drivers/base/driver.c |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
drivers/base/driver.c renamed from drivers/base/driver.c~kdoc_base +2 -1
diff -Naurp linux-2614-rc5/drivers/base/driver.c~kdoc_base linux-2614-rc5/drivers/base/driver.c
@@ -28,6 +28,7 @@ static struct device * next_device(struc
 /**
  *	driver_for_each_device - Iterator for devices bound to a driver.
  *	@drv:	Driver we're iterating.
+ *	@start: Device to begin with
  *	@data:	Data to pass to the callback.
  *	@fn:	Function to call for each device.
  *
@@ -57,7 +58,7 @@ EXPORT_SYMBOL_GPL(driver_for_each_device
 
 /**
  * driver_find_device - device iterator for locating a particular device.
- * @driver: The device's driver
+ * @drv: The device's driver
  * @start: Device to begin with
  * @data: Data to pass to match function
  * @match: Callback function to check device
drivers/base/core.c renamed from drivers/base/core.c~kdoc_base +2 -2
diff -Naurp linux-2614-rc5/drivers/base/core.c~kdoc_base linux-2614-rc5/drivers/base/core.c
@@ -390,11 +390,11 @@ static struct device * next_device(struc
 
 /**
  *	device_for_each_child - device child iterator.
- *	@dev:	parent struct device.
+ *	@parent: parent struct device.
  *	@data:	data for the callback.
  *	@fn:	function to be called for each device.
  *
- *	Iterate over @dev's child devices, and call @fn for each,
+ *	Iterate over @parent's child devices, and call @fn for each,
  *	passing it @data.
  *
  *	We check the return of @fn each time. If it returns anything

---