mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
const: struct nla_policy
Make remaining netlink policies as const. Fixup coding style where needed. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3ffe533c87
commit
b54452b07a
10 changed files with 22 additions and 33 deletions
|
|
@ -320,8 +320,7 @@ int wimax_msg(struct wimax_dev *wimax_dev, const char *pipe_name,
|
|||
EXPORT_SYMBOL_GPL(wimax_msg);
|
||||
|
||||
|
||||
static const
|
||||
struct nla_policy wimax_gnl_msg_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy wimax_gnl_msg_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
[WIMAX_GNL_MSG_IFIDX] = {
|
||||
.type = NLA_U32,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -91,8 +91,7 @@ int wimax_reset(struct wimax_dev *wimax_dev)
|
|||
EXPORT_SYMBOL(wimax_reset);
|
||||
|
||||
|
||||
static const
|
||||
struct nla_policy wimax_gnl_reset_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy wimax_gnl_reset_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
[WIMAX_GNL_RESET_IFIDX] = {
|
||||
.type = NLA_U32,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -410,8 +410,7 @@ void wimax_rfkill_rm(struct wimax_dev *wimax_dev)
|
|||
* just query).
|
||||
*/
|
||||
|
||||
static const
|
||||
struct nla_policy wimax_gnl_rfkill_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy wimax_gnl_rfkill_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
[WIMAX_GNL_RFKILL_IFIDX] = {
|
||||
.type = NLA_U32,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -33,8 +33,7 @@
|
|||
#include "debug-levels.h"
|
||||
|
||||
|
||||
static const
|
||||
struct nla_policy wimax_gnl_state_get_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy wimax_gnl_state_get_policy[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
[WIMAX_GNL_STGET_IFIDX] = {
|
||||
.type = NLA_U32,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -75,8 +75,7 @@ MODULE_PARM_DESC(debug,
|
|||
* close to where the data is generated.
|
||||
*/
|
||||
/*
|
||||
static const
|
||||
struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = {
|
||||
[WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 },
|
||||
[WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 },
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue