History

thermal: Rename generate_netlink_event

It doesn't seem right for the thermal subsystem to export a symbol named generate_netlink_event. This function is thermal-specific and its name should reflect that fact. Rename it to thermal_generate_netlink_event.

Jean Delvare committed 15 years ago

Commit 2d58d7e1 parent dcd6c923 files · +5 −5Browse files

Unified · Split

3 files
  1. Documentation/thermal/sysfs-api.txt +1 −1
  2. drivers/thermal/thermal_sys.c +2 −2
  3. include/linux/thermal.h +2 −2
Documentation/thermal/sysfs-api.txt+1−1
@@ -284,7 +284,7 @@ method, the sys I/F structure will be built like this: · 283 unmodified lines
284284 The framework includes a simple notification mechanism, in the form of a
285285 netlink event. Netlink socket initialization is done during the _init_
286286 of the framework. Drivers which intend to use the notification mechanism
287−just need to call generate_netlink_event() with two arguments viz
287+just need to call thermal_generate_netlink_event() with two arguments viz
288288 (originator, event). Typically the originator will be an integer assigned
289289 to a thermal_zone_device when it registers itself with the framework. The
290290 event will be one of:{THERMAL_AUX0, THERMAL_AUX1, THERMAL_CRITICAL,
drivers/thermal/thermal_sys.c+2−2
@@ -1304,7 +1304,7 @@ static struct genl_multicast_group thermal_event_mcgrp = { · 1303 unmodified lines
13041304 .name = THERMAL_GENL_MCAST_GROUP_NAME,
13051305 };
13061306
1307−int generate_netlink_event(u32 orig, enum events event)
1307+int thermal_generate_netlink_event(u32 orig, enum events event)
13081308 {
13091309 struct sk_buff *skb;
13101310 struct nlattr *attr;
@@ -1363,7 +1363,7 @@ int generate_netlink_event(u32 orig, enum events event) · 52 unmodified lines
13631363
13641364 return result;
13651365 }
1366−EXPORT_SYMBOL(generate_netlink_event);
1366+EXPORT_SYMBOL(thermal_generate_netlink_event);
13671367
13681368 static int genetlink_init(void)
13691369 {
include/linux/thermal.h+2−2
@@ -152,9 +152,9 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, · 151 unmodified lines
152152 void thermal_cooling_device_unregister(struct thermal_cooling_device *);
153153
154154 #ifdef CONFIG_NET
155−extern int generate_netlink_event(u32 orig, enum events event);
155+extern int thermal_generate_netlink_event(u32 orig, enum events event);
156156 #else
157−static inline int generate_netlink_event(u32 orig, enum events event)
157+static inline int thermal_generate_netlink_event(u32 orig, enum events event)
158158 {
159159 return 0;
160160 }