usb: composite.h: fix two warnings when building docs
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 13:23:13 +0000 (10:23 -0300)
committerJonathan Corbet <corbet@lwn.net>
Tue, 11 Apr 2017 20:41:01 +0000 (14:41 -0600)
By definition, we use /* private: */ tag when we won't be documenting
a parameter. However, those two parameters are documented:

./include/linux/usb/composite.h:510: warning: Excess struct/union/enum/typedef member 'setup_pending' description in 'usb_composite_dev'
./include/linux/usb/composite.h:510: warning: Excess struct/union/enum/typedef member 'os_desc_pending' description in 'usb_composite_dev'

So, we need to use /* public: */ to avoid a warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
include/linux/usb/composite.h

index 30a063e98c19f949499bb4b828a55a12880bbf41..f665d2ceac20587a285428202a7ba17de23b5734 100644 (file)
@@ -504,8 +504,9 @@ struct usb_composite_dev {
        /* protects deactivations and delayed_status counts*/
        spinlock_t                      lock;
 
-       unsigned                        setup_pending:1;
-       unsigned                        os_desc_pending:1;
+       /* public: */
+       unsigned int                    setup_pending:1;
+       unsigned int                    os_desc_pending:1;
 };
 
 extern int usb_string_id(struct usb_composite_dev *c);