mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[media] cec: add cec_phys_addr_invalidate() helper function
Simplifies setting the physical address to CEC_PHYS_ADDR_INVALID. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
23111ec304
commit
135327899d
1 changed files with 13 additions and 0 deletions
|
|
@ -360,4 +360,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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue