Skip to content

Commit d9812f0

Browse files
cristiccJiri Kosina
authored andcommitted
HID: playstation: Document spinlock_t usage
Document the usage of 'lock' member in struct ps_device and silent checkpatch.pl complaint: CHECK: spinlock_t definition without comment Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Reviewed-by: Benjamin Tissoires <bentiss@kernel.org> Tested-by: Benjamin Tissoires <bentiss@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 56d7f28 commit d9812f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/hid-playstation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum PS_TYPE {
3838
struct ps_device {
3939
struct list_head list;
4040
struct hid_device *hdev;
41-
spinlock_t lock;
41+
spinlock_t lock; /* Sync between event handler and workqueue */
4242

4343
u32 player_id;
4444

0 commit comments

Comments
 (0)