diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-10-02 23:49:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-03 04:11:11 +0200 |
commit | 66a9b9287d2447a91cef2fafc648dee32186f708 (patch) | |
tree | 28a1752bbc4ff0644076df23441402bddf2366bf /drivers/thermal/thermal_netlink.c | |
parent | genetlink: add small version of ops (diff) | |
download | linux-66a9b9287d2447a91cef2fafc648dee32186f708.tar.xz linux-66a9b9287d2447a91cef2fafc648dee32186f708.zip |
genetlink: move to smaller ops wherever possible
Bulk of the genetlink users can use smaller ops, move them.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/thermal/thermal_netlink.c')
-rw-r--r-- | drivers/thermal/thermal_netlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/thermal_netlink.c b/drivers/thermal/thermal_netlink.c index e9999d5dfdd5..da2891fcac89 100644 --- a/drivers/thermal/thermal_netlink.c +++ b/drivers/thermal/thermal_netlink.c @@ -601,7 +601,7 @@ out_free_msg: return ret; } -static const struct genl_ops thermal_genl_ops[] = { +static const struct genl_small_ops thermal_genl_ops[] = { { .cmd = THERMAL_GENL_CMD_TZ_GET_ID, .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, @@ -635,8 +635,8 @@ static struct genl_family thermal_gnl_family __ro_after_init = { .version = THERMAL_GENL_VERSION, .maxattr = THERMAL_GENL_ATTR_MAX, .policy = thermal_genl_policy, - .ops = thermal_genl_ops, - .n_ops = ARRAY_SIZE(thermal_genl_ops), + .small_ops = thermal_genl_ops, + .n_small_ops = ARRAY_SIZE(thermal_genl_ops), .mcgrps = thermal_genl_mcgrps, .n_mcgrps = ARRAY_SIZE(thermal_genl_mcgrps), }; |