driver: ethernet: cvsx remove ugly whitespace
Remove the ugly whitespace in drivers/ethernet/eth_cyclonev.c Signed-off-by: Benjamin Kyd <benjamin.kyd@intel.com>
This commit is contained in:
parent
f3a610fffe
commit
ee1e514b3b
1 changed files with 23 additions and 24 deletions
|
|
@ -1143,29 +1143,28 @@ const struct ethernet_api eth_cyclonev_api = {.iface_api.init = eth_cyclonev_ifa
|
||||||
.stop = eth_cyclonev_stop,
|
.stop = eth_cyclonev_stop,
|
||||||
.set_config = eth_cyclonev_set_config};
|
.set_config = eth_cyclonev_set_config};
|
||||||
|
|
||||||
#define CYCLONEV_ETH_INIT(inst) \
|
#define CYCLONEV_ETH_INIT(inst) \
|
||||||
\
|
static struct eth_cyclonev_priv eth_cyclonev_##inst##_data; \
|
||||||
static struct eth_cyclonev_priv eth_cyclonev_##inst##_data; \
|
static void eth_cyclonev_##inst##_irq_config(void); \
|
||||||
static void eth_cyclonev_##inst##_irq_config(void); \
|
\
|
||||||
\
|
static const struct eth_cyclonev_config eth_cyclonev_##inst##_cfg = { \
|
||||||
static const struct eth_cyclonev_config eth_cyclonev_##inst##_cfg = { \
|
.base = (uint8_t *)(DT_INST_REG_ADDR(inst)), \
|
||||||
.base = (uint8_t *)(DT_INST_REG_ADDR(inst)), \
|
.size = DT_INST_REG_SIZE(inst), \
|
||||||
.size = DT_INST_REG_SIZE(inst), \
|
|
||||||
.emac_index = DT_INST_PROP(inst, emac_index), \
|
.emac_index = DT_INST_PROP(inst, emac_index), \
|
||||||
.irq_config = eth_cyclonev_##inst##_irq_config, \
|
.irq_config = eth_cyclonev_##inst##_irq_config, \
|
||||||
}; \
|
}; \
|
||||||
ETH_NET_DEVICE_DT_INST_DEFINE(inst, eth_cyclonev_probe, NULL, \
|
ETH_NET_DEVICE_DT_INST_DEFINE(inst, eth_cyclonev_probe, NULL, \
|
||||||
ð_cyclonev_##inst##_data, \
|
ð_cyclonev_##inst##_data, \
|
||||||
ð_cyclonev_##inst##_cfg, \
|
ð_cyclonev_##inst##_cfg, \
|
||||||
CONFIG_ETH_INIT_PRIORITY, \
|
CONFIG_ETH_INIT_PRIORITY, \
|
||||||
ð_cyclonev_api, \
|
ð_cyclonev_api, \
|
||||||
NET_ETH_MTU); \
|
NET_ETH_MTU); \
|
||||||
\
|
\
|
||||||
static void eth_cyclonev_##inst##_irq_config(void) \
|
static void eth_cyclonev_##inst##_irq_config(void) \
|
||||||
{ \
|
{ \
|
||||||
IRQ_CONNECT(DT_INST_IRQN(inst), \
|
IRQ_CONNECT(DT_INST_IRQN(inst), \
|
||||||
DT_INST_IRQ(inst, priority), eth_cyclonev_isr, \
|
DT_INST_IRQ(inst, priority), eth_cyclonev_isr, \
|
||||||
DEVICE_DT_INST_GET(inst), \
|
DEVICE_DT_INST_GET(inst), \
|
||||||
0); \
|
0); \
|
||||||
irq_enable(DT_INST_IRQN(inst)); \
|
irq_enable(DT_INST_IRQN(inst)); \
|
||||||
DT_INST_FOREACH_STATUS_OKAY(CYCLONEV_ETH_INIT)
|
DT_INST_FOREACH_STATUS_OKAY(CYCLONEV_ETH_INIT)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue