[PATCH v1 7/8] media: cec: core: Use predefined time multiplier

From: Andy Shevchenko

Date: Thu Jul 09 2026 - 04:28:05 EST


Instead of relying on custom MS_TO_US() macro, use existing time
multiplier.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
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 1b6f27a552db..a67c4283fbba 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;

--
2.50.1