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
parent
74897b69c3
commit
0b3112edf2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue