]> git.baikalelectronics.ru Git - kernel.git/commit
staging: emxx_udc: Add comment for spinlock_t definition.
authorVarsha Rao <rvarsha016@gmail.com>
Thu, 2 Mar 2017 17:57:11 +0000 (23:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 13:13:51 +0000 (14:13 +0100)
commit7135f01ef0ba5aa574bda21bcff979628bfad7e5
treedfc3a1470c1ea3646c86a22f210f39a9c4a2537b
parent984598ddd71fa4c0ca045bd0ea58b925ac7651c9
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>
drivers/staging/emxx_udc/emxx_udc.h