Skip to content

Commit

Permalink
nl802154: make ieee802154_policy constant
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dmitry Baryshkov authored and David S. Miller committed Aug 13, 2009
1 parent 8505091 commit 78090a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/linux/nl802154.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ enum {

#define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1)

extern struct nla_policy ieee802154_policy[];
extern const struct nla_policy ieee802154_policy[];

/* commands */
/* REQ should be responded with CONF
Expand Down
3 changes: 2 additions & 1 deletion net/ieee802154/nl_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#define NLA_HW_ADDR NLA_U64

struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
[IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },

Expand All @@ -50,3 +50,4 @@ struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_DURATION] = { .type = NLA_U8, },
[IEEE802154_ATTR_ED_LIST] = { .len = 27 },
};

0 comments on commit 78090a5

Please sign in to comment.