mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user