.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Netlink interface for IEEE 802.15.4 stack |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2007, 2008 Siemens AG |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 |
---|
8 | | - * as published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | 6 | * |
---|
15 | 7 | * Written by: |
---|
16 | 8 | * Sergey Lapin <slapin@ossfans.org> |
---|
.. | .. |
---|
89 | 81 | return genlmsg_reply(msg, info); |
---|
90 | 82 | } |
---|
91 | 83 | |
---|
92 | | -static const struct genl_ops ieee802154_ops[] = { |
---|
| 84 | +static const struct genl_small_ops ieee802154_ops[] = { |
---|
93 | 85 | /* see nl-phy.c */ |
---|
94 | 86 | IEEE802154_DUMP(IEEE802154_LIST_PHY, ieee802154_list_phy, |
---|
95 | 87 | ieee802154_dump_phy), |
---|
.. | .. |
---|
136 | 128 | .name = IEEE802154_NL_NAME, |
---|
137 | 129 | .version = 1, |
---|
138 | 130 | .maxattr = IEEE802154_ATTR_MAX, |
---|
| 131 | + .policy = ieee802154_policy, |
---|
139 | 132 | .module = THIS_MODULE, |
---|
140 | | - .ops = ieee802154_ops, |
---|
141 | | - .n_ops = ARRAY_SIZE(ieee802154_ops), |
---|
| 133 | + .small_ops = ieee802154_ops, |
---|
| 134 | + .n_small_ops = ARRAY_SIZE(ieee802154_ops), |
---|
142 | 135 | .mcgrps = ieee802154_mcgrps, |
---|
143 | 136 | .n_mcgrps = ARRAY_SIZE(ieee802154_mcgrps), |
---|
144 | 137 | }; |
---|