mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 18:55:12 +00:00
usb: docs: document altmode register/unregister functions
The typec_bus.rst asks for documentation of those two functions, but they don't exist: ./drivers/usb/typec/bus.c:1: warning: 'typec_altmode_unregister_driver' not found ./drivers/usb/typec/bus.c:1: warning: 'typec_altmode_register_driver' not found Also, they're not declared on bus.c but, instead, at a header file (typec_altmode.h). So, add documentation for both functions at the header and change the kernel-doc markup under typec_bus.rst to point to the right place. While here, also place the documentation for both structs declared on typec_altmode.h at the rst file. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
623050ae37
commit
1b7743912b
@ -91,10 +91,16 @@ their control.
|
||||
Driver API
|
||||
----------
|
||||
|
||||
Alternate mode structs
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. kernel-doc:: include/linux/usb/typec_altmode.h
|
||||
:functions: typec_altmode_driver typec_altmode_ops
|
||||
|
||||
Alternate mode driver registering/unregistering
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. kernel-doc:: drivers/usb/typec/bus.c
|
||||
.. kernel-doc:: include/linux/usb/typec_altmode.h
|
||||
:functions: typec_altmode_register_driver typec_altmode_unregister_driver
|
||||
|
||||
Alternate mode driver operations
|
||||
|
@ -152,10 +152,26 @@ struct typec_altmode_driver {
|
||||
#define to_altmode_driver(d) container_of(d, struct typec_altmode_driver, \
|
||||
driver)
|
||||
|
||||
/**
|
||||
* typec_altmode_register_driver - registers a USB Type-C alternate mode
|
||||
* device driver
|
||||
* @drv: pointer to struct typec_altmode_driver
|
||||
*
|
||||
* These drivers will be bind to the partner alternate mode devices. They will
|
||||
* handle all SVID specific communication.
|
||||
*/
|
||||
#define typec_altmode_register_driver(drv) \
|
||||
__typec_altmode_register_driver(drv, THIS_MODULE)
|
||||
int __typec_altmode_register_driver(struct typec_altmode_driver *drv,
|
||||
struct module *module);
|
||||
/**
|
||||
* typec_altmode_unregister_driver - unregisters a USB Type-C alternate mode
|
||||
* device driver
|
||||
* @drv: pointer to struct typec_altmode_driver
|
||||
*
|
||||
* These drivers will be bind to the partner alternate mode devices. They will
|
||||
* handle all SVID specific communication.
|
||||
*/
|
||||
void typec_altmode_unregister_driver(struct typec_altmode_driver *drv);
|
||||
|
||||
#define module_typec_altmode_driver(__typec_altmode_driver) \
|
||||
|
Loading…
Reference in New Issue
Block a user