[media] cec: improve flushing queue
commitb39f93efc698fadc94a5fa273798f9e317089c72
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 10 Feb 2017 15:02:31 +0000 (10 13:02 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:09:04 +0000 (22 11:09 -0300)
treea73a46ab60539999ae8561790e9f2cfb017aba2f
parentb94dffd65c5cf09d8d3420581bd099dc61e7c3f2
[media] cec: improve flushing queue

When the adapter is unloaded or unconfigured, then all transmits and
pending waits should be flushed.

Move this code into its own function and improve the code that cancels
delayed work to avoid having to unlock adap->lock.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c