can-calc-bit-timing: print_bittiming(): skip bit timing without ref clock
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/333/head
parent
2829512f9b
commit
04123b3b36
|
|
@ -849,6 +849,10 @@ static void print_bittiming(const struct calc_data *data)
|
||||||
{
|
{
|
||||||
const struct calc_ref_clk *ref_clks = data->ref_clks;
|
const struct calc_ref_clk *ref_clks = data->ref_clks;
|
||||||
|
|
||||||
|
if (!ref_clks->clk && !data->quiet)
|
||||||
|
printf("Skipping bit timing parameter calculation for %s, no ref clock defined\n\n",
|
||||||
|
data->bittiming_const->name);
|
||||||
|
|
||||||
while (ref_clks->clk) {
|
while (ref_clks->clk) {
|
||||||
void (*printf_btr)(struct can_bittiming *bt, bool hdr);
|
void (*printf_btr)(struct can_bittiming *bt, bool hdr);
|
||||||
unsigned int const *bitrates = data->bitrates;
|
unsigned int const *bitrates = data->bitrates;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue