firewire: net: style changes
Change names of types, variables, functions. Omit debug code. Use get_unaligned*, put_unaligned*. Annotate big endian data. Handle errors in __init. Change whitespace. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
@@ -430,7 +430,7 @@ void fw_card_initialize(struct fw_card *card,
|
|||||||
|
|
||||||
INIT_DELAYED_WORK(&card->work, fw_card_bm_work);
|
INIT_DELAYED_WORK(&card->work, fw_card_bm_work);
|
||||||
card->netdev = NULL;
|
card->netdev = NULL;
|
||||||
INIT_LIST_HEAD(&card->ipv4_nodes);
|
INIT_LIST_HEAD(&card->peer_list);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(fw_card_initialize);
|
EXPORT_SYMBOL(fw_card_initialize);
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -131,13 +131,10 @@ struct fw_card {
|
|||||||
bool broadcast_channel_allocated;
|
bool broadcast_channel_allocated;
|
||||||
u32 broadcast_channel;
|
u32 broadcast_channel;
|
||||||
u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4];
|
u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4];
|
||||||
/* Only non-NULL if firewire-ipv4 is active on this card. */
|
|
||||||
|
/* firewire-net driver data */
|
||||||
void *netdev;
|
void *netdev;
|
||||||
/*
|
struct list_head peer_list;
|
||||||
* The nodes get probed before the card, so we need a place to store
|
|
||||||
* them independent of card->netdev
|
|
||||||
*/
|
|
||||||
struct list_head ipv4_nodes;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct fw_card *fw_card_get(struct fw_card *card)
|
static inline struct fw_card *fw_card_get(struct fw_card *card)
|
||||||
|
Reference in New Issue
Block a user