summaryrefslogtreecommitdiff
path: root/include/media/cec-pin.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-06-28 07:43:46 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-25 07:11:48 -0400
commit4786b0d6f3ca6da8db02b0a58cd2b785cb0b80ab (patch)
tree81105439c95a742d86411de731972f12faf20659 /include/media/cec-pin.h
parentf48a534adbd321362c3199140008c9e2f2a81b3a (diff)
media: cec: add support for 5V signal testing
Add support for the new 5V CEC events Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media/cec-pin.h')
-rw-r--r--include/media/cec-pin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/cec-pin.h b/include/media/cec-pin.h
index ed16c6dde0ba..604e79cb6cbf 100644
--- a/include/media/cec-pin.h
+++ b/include/media/cec-pin.h
@@ -25,6 +25,9 @@
* @read_hpd: read the HPD pin. Return true if high, false if low or
* an error if negative. If NULL or -ENOTTY is returned,
* then this is not supported.
+ * @read_5v: read the 5V pin. Return true if high, false if low or
+ * an error if negative. If NULL or -ENOTTY is returned,
+ * then this is not supported.
*
* These operations are used by the cec pin framework to manipulate
* the CEC pin.
@@ -38,6 +41,7 @@ struct cec_pin_ops {
void (*free)(struct cec_adapter *adap);
void (*status)(struct cec_adapter *adap, struct seq_file *file);
int (*read_hpd)(struct cec_adapter *adap);
+ int (*read_5v)(struct cec_adapter *adap);
};
/**