]> Git Repo - J-linux.git/commitdiff
net: ieee802154: Provide a kdoc to the address structure
authorDavid Girault <[email protected]>
Tue, 1 Feb 2022 18:09:56 +0000 (19:09 +0100)
committerStefan Schmidt <[email protected]>
Tue, 1 Feb 2022 20:03:48 +0000 (21:03 +0100)
Give this structure a header to better explain its content.

Signed-off-by: David Girault <[email protected]>
[[email protected]: Isolate this change from a bigger commit and
                            reword the comment]
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stefan Schmidt <[email protected]>
include/net/cfg802154.h

index 6ed07844eb244c24f457ff6e414b2d9e9be5d2f6..833672d6fbe483232e62b59d144b8d830b6ef07f 100644 (file)
@@ -227,6 +227,16 @@ static inline void wpan_phy_net_set(struct wpan_phy *wpan_phy, struct net *net)
        write_pnet(&wpan_phy->_net, net);
 }
 
+/**
+ * struct ieee802154_addr - IEEE802.15.4 device address
+ * @mode: Address mode from frame header. Can be one of:
+ *        - @IEEE802154_ADDR_NONE
+ *        - @IEEE802154_ADDR_SHORT
+ *        - @IEEE802154_ADDR_LONG
+ * @pan_id: The PAN ID this address belongs to
+ * @short_addr: address if @mode is @IEEE802154_ADDR_SHORT
+ * @extended_addr: address if @mode is @IEEE802154_ADDR_LONG
+ */
 struct ieee802154_addr {
        u8 mode;
        __le16 pan_id;
This page took 0.060686 seconds and 4 git commands to generate.