diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-10-25 22:23:45 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-18 22:04:41 +0300 |
commit | f7ceec4fa0f40a1e21b738fa5a4997f99f62d1d1 (patch) | |
tree | 34057f00f8081ab524b97e358fd2371f3681b009 /drivers/media/rc/nuvoton-cir.h | |
parent | b24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d (diff) | |
download | linux-f7ceec4fa0f40a1e21b738fa5a4997f99f62d1d1.tar.xz |
[media] media: rc: nuvoton: eliminate nvt->tx.lock
Using a separate spinlock to protect access to substruct tx of struct
nvt_dev doesn't provide any actual benefit. We can use spinlock
nvt_lock to protect all access to struct nvt_dev and get rid of
nvt->tx.lock.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.h')
-rw-r--r-- | drivers/media/rc/nuvoton-cir.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/rc/nuvoton-cir.h b/drivers/media/rc/nuvoton-cir.h index 77102a9b7d7b..a8569b66c214 100644 --- a/drivers/media/rc/nuvoton-cir.h +++ b/drivers/media/rc/nuvoton-cir.h @@ -87,7 +87,6 @@ struct nvt_dev { unsigned int pkts; struct { - spinlock_t lock; u8 buf[TX_BUF_LEN]; unsigned int buf_count; unsigned int cur_buf_num; |