mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
can-calc-bit-timing: move struct definitions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
+11
-11
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user