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>
This commit is contained in:
Marc Kleine-Budde
2022-12-07 15:08:59 +01:00
parent 74897b69c3
commit 0b3112edf2
+3 -3
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;