projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05021dc
)
Documentation/auxiliary_bus: Add example code for module_auxiliary_driver()
author
Ira Weiny
<ira.weiny@intel.com>
Thu, 2 Dec 2021 04:43:03 +0000
(20:43 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 15:41:50 +0000
(16:41 +0100)
Add an example code snipit to the module_auxiliary_driver()
documentation which is consistent with the other example code in the
elsewhere in the documentation.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link:
https://lore.kernel.org/r/20211202044305.4006853-6-ira.weiny@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/auxiliary_bus.h
patch
|
blob
|
history
diff --git
a/include/linux/auxiliary_bus.h
b/include/linux/auxiliary_bus.h
index fc51d45f106b243037a202dea6c698241e4c4122..605b27aab6937e237ddcedc3b9a36eb908d5a72d 100644
(file)
--- a/
include/linux/auxiliary_bus.h
+++ b/
include/linux/auxiliary_bus.h
@@
-66,6
+66,10
@@
void auxiliary_driver_unregister(struct auxiliary_driver *auxdrv);
* Helper macro for auxiliary drivers which do not do anything special in
* module init/exit. This eliminates a lot of boilerplate. Each module may only
* use this macro once, and calling it replaces module_init() and module_exit()
+ *
+ * .. code-block:: c
+ *
+ * module_auxiliary_driver(my_drv);
*/
#define module_auxiliary_driver(__auxiliary_driver) \
module_driver(__auxiliary_driver, auxiliary_driver_register, auxiliary_driver_unregister)