can-calc-bit-timing: move struct definitions

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/333/head
Marc Kleine-Budde 2019-06-03 19:48:44 +02:00
parent 046d9f88ee
commit 8d01589500
1 changed files with 11 additions and 11 deletions

View File

@ -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;