summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-07-11 08:30:36 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-18 17:47:29 +0200
commite6259b5f7ab74e399f838cb1abdc12f3e28668f4 (patch)
tree95238ea8e3208f9d352b3f2c251a50b54eecf9d7 /include/media
parentmedia: cec: add *_ts variants for transmit_done/received_msg (diff)
downloadlinux-e6259b5f7ab74e399f838cb1abdc12f3e28668f4.tar.xz
linux-e6259b5f7ab74e399f838cb1abdc12f3e28668f4.zip
media: cec: add adap_free op
This is needed for CEC adapters that allocate resources that have to be freed before the cec_adapter is deleted. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/cec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index e1e60dbb66c3..37768203572d 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -114,6 +114,7 @@ struct cec_adap_ops {
int (*adap_transmit)(struct cec_adapter *adap, u8 attempts,
u32 signal_free_time, struct cec_msg *msg);
void (*adap_status)(struct cec_adapter *adap, struct seq_file *file);
+ void (*adap_free)(struct cec_adapter *adap);
/* High-level CEC message callback */
int (*received)(struct cec_adapter *adap, struct cec_msg *msg);