Skip to content

Commit afdaff3

Browse files
sgruszkarafaeljw
authored andcommitted
thermal: netlink: Rename thermal_gnl_family
Almost all thermal netlink structures use thermal_genl prefix. Change thermal_gnl_family name accordingly for consistency. No functional impact. Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent cf580ad commit afdaff3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/thermal/thermal_netlink.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ struct param {
7070

7171
typedef int (*cb_t)(struct param *);
7272

73-
static struct genl_family thermal_gnl_family;
73+
static struct genl_family thermal_genl_family;
7474
static BLOCKING_NOTIFIER_HEAD(thermal_genl_chain);
7575

7676
static int thermal_group_has_listeners(enum thermal_genl_multicast_groups group)
7777
{
78-
return genl_has_listeners(&thermal_gnl_family, &init_net, group);
78+
return genl_has_listeners(&thermal_genl_family, &init_net, group);
7979
}
8080

8181
/************************** Sampling encoding *******************************/
@@ -92,7 +92,7 @@ int thermal_genl_sampling_temp(int id, int temp)
9292
if (!skb)
9393
return -ENOMEM;
9494

95-
hdr = genlmsg_put(skb, 0, 0, &thermal_gnl_family, 0,
95+
hdr = genlmsg_put(skb, 0, 0, &thermal_genl_family, 0,
9696
THERMAL_GENL_SAMPLING_TEMP);
9797
if (!hdr)
9898
goto out_free;
@@ -105,7 +105,7 @@ int thermal_genl_sampling_temp(int id, int temp)
105105

106106
genlmsg_end(skb, hdr);
107107

108-
genlmsg_multicast(&thermal_gnl_family, skb, 0, THERMAL_GENL_SAMPLING_GROUP, GFP_KERNEL);
108+
genlmsg_multicast(&thermal_genl_family, skb, 0, THERMAL_GENL_SAMPLING_GROUP, GFP_KERNEL);
109109

110110
return 0;
111111
out_cancel:
@@ -279,7 +279,7 @@ static int thermal_genl_send_event(enum thermal_genl_event event,
279279
return -ENOMEM;
280280
p->msg = msg;
281281

282-
hdr = genlmsg_put(msg, 0, 0, &thermal_gnl_family, 0, event);
282+
hdr = genlmsg_put(msg, 0, 0, &thermal_genl_family, 0, event);
283283
if (!hdr)
284284
goto out_free_msg;
285285

@@ -289,7 +289,7 @@ static int thermal_genl_send_event(enum thermal_genl_event event,
289289

290290
genlmsg_end(msg, hdr);
291291

292-
genlmsg_multicast(&thermal_gnl_family, msg, 0, THERMAL_GENL_EVENT_GROUP, GFP_KERNEL);
292+
genlmsg_multicast(&thermal_genl_family, msg, 0, THERMAL_GENL_EVENT_GROUP, GFP_KERNEL);
293293

294294
return 0;
295295

@@ -590,7 +590,7 @@ static int thermal_genl_cmd_dumpit(struct sk_buff *skb,
590590
int ret;
591591
void *hdr;
592592

593-
hdr = genlmsg_put(skb, 0, 0, &thermal_gnl_family, 0, cmd);
593+
hdr = genlmsg_put(skb, 0, 0, &thermal_genl_family, 0, cmd);
594594
if (!hdr)
595595
return -EMSGSIZE;
596596

@@ -622,7 +622,7 @@ static int thermal_genl_cmd_doit(struct sk_buff *skb,
622622
return -ENOMEM;
623623
p.msg = msg;
624624

625-
hdr = genlmsg_put_reply(msg, info, &thermal_gnl_family, 0, cmd);
625+
hdr = genlmsg_put_reply(msg, info, &thermal_genl_family, 0, cmd);
626626
if (!hdr)
627627
goto out_free_msg;
628628

@@ -691,7 +691,7 @@ static const struct genl_small_ops thermal_genl_ops[] = {
691691
},
692692
};
693693

694-
static struct genl_family thermal_gnl_family __ro_after_init = {
694+
static struct genl_family thermal_genl_family __ro_after_init = {
695695
.hdrsize = 0,
696696
.name = THERMAL_GENL_FAMILY_NAME,
697697
.version = THERMAL_GENL_VERSION,
@@ -718,10 +718,10 @@ int thermal_genl_unregister_notifier(struct notifier_block *nb)
718718

719719
int __init thermal_netlink_init(void)
720720
{
721-
return genl_register_family(&thermal_gnl_family);
721+
return genl_register_family(&thermal_genl_family);
722722
}
723723

724724
void __init thermal_netlink_exit(void)
725725
{
726-
genl_unregister_family(&thermal_gnl_family);
726+
genl_unregister_family(&thermal_genl_family);
727727
}

0 commit comments

Comments
 (0)