diff options
author | 2025-01-13 12:26:41 +0000 | |
---|---|---|
committer | 2025-01-14 13:01:30 +0100 | |
commit | 385bb1c2678b59db201831255b524a6d7f7a25ff (patch) | |
tree | 2e2ebe9f65cf02cd12112a8c310b8106d5d46563 /scripts/gdb/linux/utils.py | |
parent | i2c: riic: Mark riic_irqs array as const (diff) | |
download | wireguard-linux-385bb1c2678b59db201831255b524a6d7f7a25ff.tar.xz wireguard-linux-385bb1c2678b59db201831255b524a6d7f7a25ff.zip |
i2c: riic: Use predefined macro and simplify clock tick calculation
Replace the hardcoded `1000000000` with the predefined `NSEC_PER_SEC`
macro for clarity. Simplify the code by introducing a `ns_per_tick`
variable to store `NSEC_PER_SEC / rate`, reducing redundancy and
improving readability.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions