mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
UPSTREAM: [media] cec: add cec_phys_addr_invalidate() helper function
Simplifies setting the physical address to CEC_PHYS_ADDR_INVALID.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit 135327899d)
Change-Id: I707856bd288cfc43c5f8f32e109586a7e790ba1c
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user