can-calc-bit-timing: remove const from printf_btr functions to silence warning on clang

Fixes: 9b63929974 ("can-calc-bit-timing: mark several structs and members as const")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/387/head
Marc Kleine-Budde 2022-12-07 14:57:50 +01:00
parent 74897b69c3
commit 0b3112edf2
1 changed files with 3 additions and 3 deletions

View File

@ -136,8 +136,8 @@ struct calc_bittiming_const {
const struct calc_ref_clk ref_clk[16];
const void (*printf_btr)(struct can_bittiming *bt, bool hdr);
const void (*printf_data_btr)(struct can_bittiming *bt, bool hdr);
void (*printf_btr)(struct can_bittiming *bt, bool hdr);
void (*printf_data_btr)(struct can_bittiming *bt, bool hdr);
};
struct alg {
@ -159,7 +159,7 @@ struct alg {
struct calc_data {
const struct can_bittiming_const *bittiming_const;
const struct alg *alg;
const void (*printf_btr)(struct can_bittiming *bt, bool hdr);
void (*printf_btr)(struct can_bittiming *bt, bool hdr);
const char *name;
const struct calc_ref_clk *ref_clks;