Commit 78090a58 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by David S. Miller

nl802154: make ieee802154_policy constant

Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8505091d
...@@ -69,7 +69,7 @@ enum { ...@@ -69,7 +69,7 @@ enum {
#define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1) #define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1)
extern struct nla_policy ieee802154_policy[]; extern const struct nla_policy ieee802154_policy[];
/* commands */ /* commands */
/* REQ should be responded with CONF /* REQ should be responded with CONF
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#define NLA_HW_ADDR NLA_U64 #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_NAME] = { .type = NLA_STRING, },
[IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, }, [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
...@@ -50,3 +50,4 @@ struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = { ...@@ -50,3 +50,4 @@ struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_DURATION] = { .type = NLA_U8, }, [IEEE802154_ATTR_DURATION] = { .type = NLA_U8, },
[IEEE802154_ATTR_ED_LIST] = { .len = 27 }, [IEEE802154_ATTR_ED_LIST] = { .len = 27 },
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment