diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2017-03-02 23:27:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 14:13:51 +0100 |
commit | a71c8e9b8efc30459d4dbae9dff90fba46f46c63 (patch) | |
tree | dfc3a1470c1ea3646c86a22f210f39a9c4a2537b /drivers/staging/emxx_udc | |
parent | b7e5500a5d5107732b48aec7011f2dbdbae60242 (diff) | |
download | linux-stable-a71c8e9b8efc30459d4dbae9dff90fba46f46c63.tar.gz linux-stable-a71c8e9b8efc30459d4dbae9dff90fba46f46c63.tar.bz2 linux-stable-a71c8e9b8efc30459d4dbae9dff90fba46f46c63.zip |
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>
Diffstat (limited to 'drivers/staging/emxx_udc')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h index 789bfb97143c..78c08e15a1f9 100644 --- a/drivers/staging/emxx_udc/emxx_udc.h +++ b/drivers/staging/emxx_udc/emxx_udc.h @@ -567,7 +567,7 @@ struct nbu2ss_udc { struct usb_gadget_driver *driver; struct platform_device *pdev; struct device *dev; - spinlock_t lock; + spinlock_t lock; /* Protects nbu2ss_udc structure fields */ struct completion *pdone; enum ep0_state ep0state; |