Commit 05021dca authored by Ira Weiny's avatar Ira Weiny Committed by Greg Kroah-Hartman

Documentation/auxiliary_bus: Clarify __auxiliary_driver_register

__auxiliary_driver_register is not intended to be called directly unless
a custom name is required.  Add documentation for this fact.
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20211202044305.4006853-5-ira.weiny@intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb2ba759
...@@ -225,6 +225,11 @@ EXPORT_SYMBOL_GPL(auxiliary_find_device); ...@@ -225,6 +225,11 @@ EXPORT_SYMBOL_GPL(auxiliary_find_device);
* @auxdrv: auxiliary_driver structure * @auxdrv: auxiliary_driver structure
* @owner: owning module/driver * @owner: owning module/driver
* @modname: KBUILD_MODNAME for parent driver * @modname: KBUILD_MODNAME for parent driver
*
* The expectation is that users will call the "auxiliary_driver_register"
* macro so that the caller's KBUILD_MODNAME is automatically inserted for the
* modname parameter. Only if a user requires a custom name would this version
* be called directly.
*/ */
int __auxiliary_driver_register(struct auxiliary_driver *auxdrv, int __auxiliary_driver_register(struct auxiliary_driver *auxdrv,
struct module *owner, const char *modname) struct module *owner, const char *modname)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment