media: cec: core: Use predefined time multiplier

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Andy Shevchenko
2026-07-09 10:20:59 +02:00
committed by Hans Verkuil
parent 5f41e11e5f
commit a6bc7e89f9

View File

@@ -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;