[media] media: rc: nuvoton: eliminate nvt->tx.lock
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 25 Oct 2016 19:23:45 +0000 (17:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 19:04:41 +0000 (17:04 -0200)
commitf7ceec4fa0f40a1e21b738fa5a4997f99f62d1d1
tree34057f00f8081ab524b97e358fd2371f3681b009
parentb24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d
[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>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h