can-calc-bit-timing: move struct definitions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/333/head
parent
046d9f88ee
commit
8d01589500
|
|
@ -118,6 +118,17 @@ struct calc_ref_clk {
|
||||||
const char *name;
|
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 {
|
struct calc_bittiming_const {
|
||||||
const struct can_bittiming_const bittiming_const;
|
const struct can_bittiming_const bittiming_const;
|
||||||
const struct can_bittiming_const data_bittiming_const;
|
const struct can_bittiming_const data_bittiming_const;
|
||||||
|
|
@ -146,17 +157,6 @@ struct calc_data {
|
||||||
bool quiet;
|
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)
|
static inline void *netdev_priv(const struct net_device *dev)
|
||||||
{
|
{
|
||||||
return (void *)&dev->priv;
|
return (void *)&dev->priv;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue