@@ -70,12 +70,12 @@ struct param {
70
70
71
71
typedef int (* cb_t )(struct param * );
72
72
73
- static struct genl_family thermal_gnl_family ;
73
+ static struct genl_family thermal_genl_family ;
74
74
static BLOCKING_NOTIFIER_HEAD (thermal_genl_chain );
75
75
76
76
static int thermal_group_has_listeners (enum thermal_genl_multicast_groups group )
77
77
{
78
- return genl_has_listeners (& thermal_gnl_family , & init_net , group );
78
+ return genl_has_listeners (& thermal_genl_family , & init_net , group );
79
79
}
80
80
81
81
/************************** Sampling encoding *******************************/
@@ -92,7 +92,7 @@ int thermal_genl_sampling_temp(int id, int temp)
92
92
if (!skb )
93
93
return - ENOMEM ;
94
94
95
- hdr = genlmsg_put (skb , 0 , 0 , & thermal_gnl_family , 0 ,
95
+ hdr = genlmsg_put (skb , 0 , 0 , & thermal_genl_family , 0 ,
96
96
THERMAL_GENL_SAMPLING_TEMP );
97
97
if (!hdr )
98
98
goto out_free ;
@@ -105,7 +105,7 @@ int thermal_genl_sampling_temp(int id, int temp)
105
105
106
106
genlmsg_end (skb , hdr );
107
107
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 );
109
109
110
110
return 0 ;
111
111
out_cancel :
@@ -279,7 +279,7 @@ static int thermal_genl_send_event(enum thermal_genl_event event,
279
279
return - ENOMEM ;
280
280
p -> msg = msg ;
281
281
282
- hdr = genlmsg_put (msg , 0 , 0 , & thermal_gnl_family , 0 , event );
282
+ hdr = genlmsg_put (msg , 0 , 0 , & thermal_genl_family , 0 , event );
283
283
if (!hdr )
284
284
goto out_free_msg ;
285
285
@@ -289,7 +289,7 @@ static int thermal_genl_send_event(enum thermal_genl_event event,
289
289
290
290
genlmsg_end (msg , hdr );
291
291
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 );
293
293
294
294
return 0 ;
295
295
@@ -590,7 +590,7 @@ static int thermal_genl_cmd_dumpit(struct sk_buff *skb,
590
590
int ret ;
591
591
void * hdr ;
592
592
593
- hdr = genlmsg_put (skb , 0 , 0 , & thermal_gnl_family , 0 , cmd );
593
+ hdr = genlmsg_put (skb , 0 , 0 , & thermal_genl_family , 0 , cmd );
594
594
if (!hdr )
595
595
return - EMSGSIZE ;
596
596
@@ -622,7 +622,7 @@ static int thermal_genl_cmd_doit(struct sk_buff *skb,
622
622
return - ENOMEM ;
623
623
p .msg = msg ;
624
624
625
- hdr = genlmsg_put_reply (msg , info , & thermal_gnl_family , 0 , cmd );
625
+ hdr = genlmsg_put_reply (msg , info , & thermal_genl_family , 0 , cmd );
626
626
if (!hdr )
627
627
goto out_free_msg ;
628
628
@@ -691,7 +691,7 @@ static const struct genl_small_ops thermal_genl_ops[] = {
691
691
},
692
692
};
693
693
694
- static struct genl_family thermal_gnl_family __ro_after_init = {
694
+ static struct genl_family thermal_genl_family __ro_after_init = {
695
695
.hdrsize = 0 ,
696
696
.name = THERMAL_GENL_FAMILY_NAME ,
697
697
.version = THERMAL_GENL_VERSION ,
@@ -718,10 +718,10 @@ int thermal_genl_unregister_notifier(struct notifier_block *nb)
718
718
719
719
int __init thermal_netlink_init (void )
720
720
{
721
- return genl_register_family (& thermal_gnl_family );
721
+ return genl_register_family (& thermal_genl_family );
722
722
}
723
723
724
724
void __init thermal_netlink_exit (void )
725
725
{
726
- genl_unregister_family (& thermal_gnl_family );
726
+ genl_unregister_family (& thermal_genl_family );
727
727
}
0 commit comments