Skip to contentSkip to conversation

driver core: class: fix documentation for class_create()

PATCH In review Greg Kroah-Hartman 2 participants 2 messages Mar 27, 2023 Driver core

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 1/1 driver core: class: fix documentation for class_create()

In commit dcfbb67e48a2 ("driver core: class: use lock_class_key already present in struct subsys_private") we removed the key parameter to the function class_create() but forgot to remove it from the kerneldoc, which causes a build warning. Fix that up by removing the key parameter from the documentation as it is now gone.

Cc "Rafael J. Wysocki" <[email protected]>
Fixes dcfbb67e48a2 ("driver core: class: use lock_class_key already present in struct subsys_private")
---
 drivers/base/class.c | 1 -
 1 file changed, 1 deletion(-)
drivers/base/class.c +0 -1
index dbaeb79ae917..0f8938a17144 100644
@@ -223,7 +223,6 @@ static void class_create_release(struct class *cls)
 /**
  * class_create - create a struct class structure
  * @name: pointer to a string for the name of this class.
- * @key: the lock_class_key for this class; used by mutex lock debugging
  *
  * This is used to create a struct class pointer that can then be used
  * in calls to device_create().
Signature · 1 line
2.40.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Greg Kroah-Hartman

In commit dcfbb67e48a2 ("driver core: class: use lock_class_key already present in struct subsys_private") we removed the key parameter to the function class_create() but forgot to remove it from the kerneldoc, which causes a build warning. Fix that up by removing the key parameter from the documentation as it is now gone.

Cc "Rafael J. Wysocki" <[email protected]>
Fixes dcfbb67e48a2 ("driver core: class: use lock_class_key already present in struct subsys_private")
Quoted 19 lines
---
 drivers/base/class.c | 1 -
 1 file changed, 1 deletion(-)
drivers/base/class.c +0 -2
index dbaeb79ae917..0f8938a17144 100644
@@ -223,7 +223,6 @@ static void class_create_release(struct class *cls)
 /**
  * class_create - create a struct class structure
  * @name: pointer to a string for the name of this class.
- * @key: the lock_class_key for this class; used by mutex lock debugging
  *
  * This is used to create a struct class pointer that can then be used
  * in calls to device_create().
--

2.40.0