diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-02-03 13:11:15 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 08:41:35 +0200 |
commit | f1b57164305d6342b9f77a4f4482cde492b56983 (patch) | |
tree | 7877791677c5e594fbfbcdb66ba0316243830f69 /drivers/media | |
parent | media: cec: add xfer_timeout_ms field (diff) | |
download | linux-f1b57164305d6342b9f77a4f4482cde492b56983.tar.xz linux-f1b57164305d6342b9f77a4f4482cde492b56983.zip |
media: cec: add optional adap_configured callback
This new optional callback is called when the adapter is fully configured
or fully unconfigured. Some drivers may have to take action when this
happens.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/cec/core/cec-adap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/cec/core/cec-adap.c b/drivers/media/cec/core/cec-adap.c index 2425cb4c6a9a..e789aec7455c 100644 --- a/drivers/media/cec/core/cec-adap.c +++ b/drivers/media/cec/core/cec-adap.c @@ -1336,6 +1336,7 @@ static void cec_adap_unconfigure(struct cec_adapter *adap) cec_flush(adap); wake_up_interruptible(&adap->kthread_waitq); cec_post_state_event(adap); + call_void_op(adap, adap_configured, false); } /* @@ -1517,6 +1518,7 @@ configured: adap->kthread_config = NULL; complete(&adap->config_completion); mutex_unlock(&adap->lock); + call_void_op(adap, adap_configured, true); return 0; unconfigure: |