On Thu Jul 9 10:20:59 2026 +0200, Andy Shevchenko wrote:
> Instead of relying on custom MS_TO_US() macro, use existing time
> multiplier.
>
> Signed-off-by: Andy Shevchenko <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
drivers/media/cec/core/cec-core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/drivers/media/cec/core/cec-core.c
b/drivers/media/cec/core/cec-core.c
index c57f691b5a09..c51e769b4e34 100644
--- a/drivers/media/cec/core/cec-core.c
+++ b/drivers/media/cec/core/cec-core.c
@@ -27,6 +27,7 @@
#include <linux/slab.h>
#include <linux/sprintf.h>
#include <linux/string.h>
+#include <linux/time.h>
#include <linux/types.h>
#include <linux/wait.h>
@@ -300,7 +301,7 @@ struct cec_adapter *cec_allocate_adapter(const struct
cec_adap_ops *ops,
adap->rc->allowed_protocols = RC_PROTO_BIT_CEC;
adap->rc->priv = adap;
adap->rc->map_name = RC_MAP_CEC;
- adap->rc->timeout = MS_TO_US(550);
+ adap->rc->timeout = 550 * USEC_PER_MSEC;
#endif
return adap;
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]