diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2009-08-07 04:58:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 05:49:48 +0200 |
commit | 78090a58c49f2f6213d0bb1b3b4c4df73e26865f (patch) | |
tree | 1898fca84a5406c0b5a4b04cf223b36b70bb99ef | |
parent | af_ieee802154: drop IEEE802154_SIOC_ADD_SLAVE declaration (diff) | |
download | linux-78090a58c49f2f6213d0bb1b3b4c4df73e26865f.tar.xz linux-78090a58c49f2f6213d0bb1b3b4c4df73e26865f.zip |
nl802154: make ieee802154_policy constant
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/nl802154.h | 2 | ||||
-rw-r--r-- | net/ieee802154/nl_policy.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h index 2cda00ccfcca..266dd96ced96 100644 --- a/include/linux/nl802154.h +++ b/include/linux/nl802154.h @@ -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 diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c index c7d71d1adcac..83cb4ccef90d 100644 --- a/net/ieee802154/nl_policy.c +++ b/net/ieee802154/nl_policy.c @@ -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, }, @@ -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 }, }; + |