staging: emxx_udc: Add comment for spinlock_t definition.

Members of nbu2ss_udc structure can change device state, maintain
completion state and control driver. Also provide access to read and
write to register. Hence, exclusive access to nbu2ss_udc is required.
The lock variable of type spinlock_t guarantees the exclusive access
and protects it.

In this patch, comment is added for spinlock_t definition, to fix the
following checkpatch issue:

CHECK: spinlock_t definition without comment

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Varsha Rao 2017-03-02 23:27:11 +05:30 committed by Greg Kroah-Hartman
parent b7e5500a5d
commit a71c8e9b8e

View File

@ -567,7 +567,7 @@ struct nbu2ss_udc {
struct usb_gadget_driver *driver; struct usb_gadget_driver *driver;
struct platform_device *pdev; struct platform_device *pdev;
struct device *dev; struct device *dev;
spinlock_t lock; spinlock_t lock; /* Protects nbu2ss_udc structure fields */
struct completion *pdone; struct completion *pdone;
enum ep0_state ep0state; enum ep0_state ep0state;