diff options
author | Mark Einon <mark.einon@gmail.com> | 2014-09-14 16:59:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 16:04:52 -0700 |
commit | 48c8f78914720b39b9de27c6e58134abdf1f1a4c (patch) | |
tree | e8cb1b0811f8956d6055b41a8437bdcabb1a2ca6 /drivers/staging/et131x/et131x.c | |
parent | staging: et131x: Remove useless assignment to NULL (diff) | |
download | linux-dev-48c8f78914720b39b9de27c6e58134abdf1f1a4c.tar.xz linux-dev-48c8f78914720b39b9de27c6e58134abdf1f1a4c.zip |
staging: et131x: Add spinlock definition comments
Checkpatch --strict advises that spinlocks should be described when
defined, seems a good idea so this change does that.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x/et131x.c')
-rw-r--r-- | drivers/staging/et131x/et131x.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 3b62f7691804..c158b01a5569 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -474,10 +474,9 @@ struct et131x_adapter { bool has_eeprom; u8 eeprom_data[2]; - /* Spinlocks */ - spinlock_t tcb_send_qlock; - spinlock_t tcb_ready_qlock; - spinlock_t rcv_lock; + spinlock_t tcb_send_qlock; /* protects the tx_ring send tcb list */ + spinlock_t tcb_ready_qlock; /* protects the tx_ring ready tcb list */ + spinlock_t rcv_lock; /* protects the rx_ring receive list */ /* Packet Filter and look ahead size */ u32 packet_filter; |