media: pulse8-cec: locking improvements
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Dec 2019 16:22:24 +0000 (17:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 10:58:39 +0000 (11:58 +0100)
commita6706447f31916c4335a398c5384ca47f4e46661
tree241ae03c4d32439a4aef9f329e4d7e6cea32dfb8
parentcea28e7a55e7af4263ab5e4e02ca9b080b595e1b
media: pulse8-cec: locking improvements

Drop the write_lock, rename config_lock to plain lock since this
now locks access to the adapter. Use 'lock' when transmitting
a message, ensuring that nothing interferes with the transmit.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pulse8-cec/pulse8-cec.c