linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func:
@ 2021-10-25  5:09 Philipp Hortmann
  2021-10-25  5:09 ` [PATCH 1/2] Docs: usb: update struct usb_driver Philipp Hortmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Philipp Hortmann @ 2021-10-25  5:09 UTC (permalink / raw)
  To: corbet, linux-doc, linux-kernel; +Cc: linux-usb

update struct usb_driver and remove :c:func: for usb_register and usb_deregister

Philipp Hortmann (2):
  Docs: usb: update struct usb_driver
  Docs: usb: remove :c:func: for usb_register and usb_deregister

 Documentation/driver-api/usb/writing_usb_driver.rst | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] Docs: usb: update struct usb_driver
  2021-10-25  5:09 [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Philipp Hortmann
@ 2021-10-25  5:09 ` Philipp Hortmann
  2021-10-25  5:09 ` [PATCH 2/2] Docs: usb: remove :c:func: for usb_register and usb_deregister Philipp Hortmann
  2021-10-25  5:17 ` [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Philipp Hortmann @ 2021-10-25  5:09 UTC (permalink / raw)
  To: corbet, linux-doc, linux-kernel; +Cc: linux-usb

update struct usb_driver from usb-skeleton.c.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
 Documentation/driver-api/usb/writing_usb_driver.rst | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst
index 2176297e5765..a511c6fecf96 100644
--- a/Documentation/driver-api/usb/writing_usb_driver.rst
+++ b/Documentation/driver-api/usb/writing_usb_driver.rst
@@ -57,9 +57,12 @@ structure. The skeleton driver declares a :c:type:`usb_driver` as::
 	    .name        = "skeleton",
 	    .probe       = skel_probe,
 	    .disconnect  = skel_disconnect,
-	    .fops        = &skel_fops,
-	    .minor       = USB_SKEL_MINOR_BASE,
+	    .suspend     = skel_suspend,
+	    .resume      = skel_resume,
+	    .pre_reset   = skel_pre_reset,
+	    .post_reset  = skel_post_reset,
 	    .id_table    = skel_table,
+	    .supports_autosuspend = 1,
     };
 
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Docs: usb: remove :c:func: for usb_register and usb_deregister
  2021-10-25  5:09 [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Philipp Hortmann
  2021-10-25  5:09 ` [PATCH 1/2] Docs: usb: update struct usb_driver Philipp Hortmann
@ 2021-10-25  5:09 ` Philipp Hortmann
  2021-10-25  5:17 ` [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Philipp Hortmann @ 2021-10-25  5:09 UTC (permalink / raw)
  To: corbet, linux-doc, linux-kernel; +Cc: linux-usb

remove :c:func: for usb_register and usb_deregister

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
 Documentation/driver-api/usb/writing_usb_driver.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst
index a511c6fecf96..e09dac9e2cb6 100644
--- a/Documentation/driver-api/usb/writing_usb_driver.rst
+++ b/Documentation/driver-api/usb/writing_usb_driver.rst
@@ -84,7 +84,7 @@ this user-space interaction. The skeleton driver needs this kind of
 interface, so it provides a minor starting number and a pointer to its
 :c:type:`file_operations` functions.
 
-The USB driver is then registered with a call to :c:func:`usb_register`,
+The USB driver is then registered with a call to usb_register(),
 usually in the driver's init function, as shown here::
 
     static int __init usb_skel_init(void)
@@ -105,7 +105,7 @@ usually in the driver's init function, as shown here::
 
 
 When the driver is unloaded from the system, it needs to deregister
-itself with the USB subsystem. This is done with the :c:func:`usb_deregister`
+itself with the USB subsystem. This is done with usb_deregister()
 function::
 
     static void __exit usb_skel_exit(void)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func:
  2021-10-25  5:09 [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Philipp Hortmann
  2021-10-25  5:09 ` [PATCH 1/2] Docs: usb: update struct usb_driver Philipp Hortmann
  2021-10-25  5:09 ` [PATCH 2/2] Docs: usb: remove :c:func: for usb_register and usb_deregister Philipp Hortmann
@ 2021-10-25  5:17 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2021-10-25  5:17 UTC (permalink / raw)
  To: Philipp Hortmann; +Cc: corbet, linux-doc, linux-kernel, linux-usb

On Mon, Oct 25, 2021 at 07:09:38AM +0200, Philipp Hortmann wrote:
> update struct usb_driver and remove :c:func: for usb_register and usb_deregister
> 
> Philipp Hortmann (2):
>   Docs: usb: update struct usb_driver
>   Docs: usb: remove :c:func: for usb_register and usb_deregister
> 
>  Documentation/driver-api/usb/writing_usb_driver.rst | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)

Thanks, these look much better.  I will take them through my usb tree.

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-25  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-25  5:09 [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Philipp Hortmann
2021-10-25  5:09 ` [PATCH 1/2] Docs: usb: update struct usb_driver Philipp Hortmann
2021-10-25  5:09 ` [PATCH 2/2] Docs: usb: remove :c:func: for usb_register and usb_deregister Philipp Hortmann
2021-10-25  5:17 ` [PATCH 0/2] Docs: usb: update struct usb_driver, remove :c:func: Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).