summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/media/cec.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index 1048888a96c2..940776f91742 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -429,4 +429,17 @@ static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port)
#endif
+/**
+ * cec_phys_addr_invalidate() - set the physical address to INVALID
+ *
+ * @adap: the CEC adapter
+ *
+ * This is a simple helper function to invalidate the physical
+ * address.
+ */
+static inline void cec_phys_addr_invalidate(struct cec_adapter *adap)
+{
+ cec_s_phys_addr(adap, CEC_PHYS_ADDR_INVALID, false);
+}
+
#endif /* _MEDIA_CEC_H */