summaryrefslogtreecommitdiffstats
path: root/drivers/media/cec
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-03 12:11:15 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-04-24 07:41:35 +0100
commitf1b57164305d6342b9f77a4f4482cde492b56983 (patch)
tree7877791677c5e594fbfbcdb66ba0316243830f69 /drivers/media/cec
parentdad272bd03d541dc7c0ff8331756eccf659f6f02 (diff)
downloadlinux-f1b57164305d6342b9f77a4f4482cde492b56983.tar.bz2
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/cec')
-rw-r--r--drivers/media/cec/core/cec-adap.c2
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: