diff --git a/can-calc-bit-timing.c b/can-calc-bit-timing.c index ef6a1ad..c90cc6f 100644 --- a/can-calc-bit-timing.c +++ b/can-calc-bit-timing.c @@ -118,6 +118,17 @@ struct calc_ref_clk { const char *name; }; +/* + * minimal structs, just enough to be source level compatible + */ +struct can_priv { + struct can_clock clock; +}; + +struct net_device { + struct can_priv priv; +}; + struct calc_bittiming_const { const struct can_bittiming_const bittiming_const; const struct can_bittiming_const data_bittiming_const; @@ -146,17 +157,6 @@ struct calc_data { bool quiet; }; -/* - * minimal structs, just enough to be source level compatible - */ -struct can_priv { - struct can_clock clock; -}; - -struct net_device { - struct can_priv priv; -}; - static inline void *netdev_priv(const struct net_device *dev) { return (void *)&dev->priv;