From f11949b7d8f9f42e7049bfc3388c81db3699c468 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 23 Mar 2021 00:35:33 +0100 Subject: [PATCH] Use the name member to clarify the OSC clock connected to the mcp251x --- can-calc-bit-timing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/can-calc-bit-timing.c b/can-calc-bit-timing.c index 6d5b6d0..d99bd22 100644 --- a/can-calc-bit-timing.c +++ b/can-calc-bit-timing.c @@ -363,9 +363,9 @@ static struct calc_bittiming_const can_calc_consts[] = { }, .ref_clk = { /* The mcp251x uses half of the external OSC clock as the base clock */ - { .clk = 8000000 / 2, }, - { .clk = 16000000 / 2, }, - { .clk = 20000000 / 2, }, + { .clk = 8000000 / 2, .name = "8 MHz OSC" }, + { .clk = 16000000 / 2, .name = "16 MHz OSC" }, + { .clk = 20000000 / 2, .name = "20 MHz OSC" }, }, .printf_btr = printf_btr_mcp251x, }, {