staging: unisys: include: Add comment next to mutex.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:18 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:39 +0000 (18:17 +0200)
Checkpatch reports an error that no comment was next to the mutex lock.
Add an appropriate message for the lock.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/visorbus.h

index 0af54774d7b5e4f472c4f83089cbcbc5e2a0e7a7..d7fa27be5a12e8300ae7372e15e4abec05686969 100644 (file)
@@ -119,8 +119,8 @@ struct visor_driver {
  *                             activity.
  * @being_removed:             Indicates that the device is being removed from
  *                             the bus. Private bus driver use only.
- * @visordriver_callback_lock: Used by the bus driver to lock when handling
- *                             channel events.
+ * @visordriver_callback_lock: Used by the bus driver to lock when adding and
+ *                             removing devices.
  * @pausing:                   Indicates that a change towards a paused state.
  *                             is in progress. Only modified by the bus driver.
  * @resuming:                  Indicates that a change towards a running state
@@ -149,7 +149,7 @@ struct visor_device {
        struct timer_list timer;
        bool timer_active;
        bool being_removed;
-       struct mutex visordriver_callback_lock;
+       struct mutex visordriver_callback_lock; /* synchronize probe/remove */
        bool pausing;
        bool resuming;
        u32 chipset_bus_no;