浏览代码

driver-core: fix kernel-doc function parameters

Fix drivers/base/ missing kernel-doc parameters:
Warning(linux-2.6.24-git12//drivers/base/driver.c:133): No description found for parameter 'drv'
Warning(linux-2.6.24-git12//drivers/base/driver.c:133): No description found for parameter 'kobj'
Warning(linux-2.6.24-git12//drivers/base/driver.c:133): No description found for parameter 'fmt'
Warning(linux-2.6.24-git12//drivers/base/power/main.c:530): No description found for parameter 'state'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Randy Dunlap 17 年之前
父节点
当前提交
7199677d2e
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      drivers/base/driver.c
  2. 1 0
      drivers/base/power/main.c

+ 3 - 0
drivers/base/driver.c

@@ -120,6 +120,9 @@ EXPORT_SYMBOL_GPL(driver_remove_file);
 
 
 /**
 /**
  * driver_add_kobj - add a kobject below the specified driver
  * driver_add_kobj - add a kobject below the specified driver
+ * @drv: requesting device driver
+ * @kobj: kobject to add below this driver
+ * @fmt: format string that names the kobject
  *
  *
  * You really don't want to do this, this is only here due to one looney
  * You really don't want to do this, this is only here due to one looney
  * iseries driver, go poke those developers if you are annoyed about
  * iseries driver, go poke those developers if you are annoyed about

+ 1 - 0
drivers/base/power/main.c

@@ -523,6 +523,7 @@ static void lock_all_devices(void)
 
 
 /**
 /**
  *	device_suspend - Save state and stop all devices in system.
  *	device_suspend - Save state and stop all devices in system.
+ *	@state: new power management state
  *
  *
  *	Prevent new devices from being registered, then lock all devices
  *	Prevent new devices from being registered, then lock all devices
  *	and suspend them.
  *	and suspend them.