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
284The framework includes a simple notification mechanism, in the form of a284The framework includes a simple notification mechanism, in the form of a
285netlink event. Netlink socket initialization is done during the _init_285netlink event. Netlink socket initialization is done during the _init_
286of the framework. Drivers which intend to use the notification mechanism286of the framework. Drivers which intend to use the notification mechanism
287just need to call generate_netlink_event() with two arguments viz287just need to call thermal_generate_netlink_event() with two arguments viz
288(originator, event). Typically the originator will be an integer assigned288(originator, event). Typically the originator will be an integer assigned
289to a thermal_zone_device when it registers itself with the framework. The289to a thermal_zone_device when it registers itself with the framework. The
290event will be one of:{THERMAL_AUX0, THERMAL_AUX1, THERMAL_CRITICAL,290event 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
1304 .name = THERMAL_GENL_MCAST_GROUP_NAME,1304 .name = THERMAL_GENL_MCAST_GROUP_NAME,
1305};1305};
1306 1306
1307int generate_netlink_event(u32 orig, enum events event)1307int thermal_generate_netlink_event(u32 orig, enum events event)
1308{1308{
1309 struct sk_buff *skb;1309 struct sk_buff *skb;
1310 struct nlattr *attr;1310 struct nlattr *attr;
@@ -1363,7 +1363,7 @@ int generate_netlink_event(u32 orig, enum events event) · 52 unmodified lines
1363 1363
1364 return result;1364 return result;
1365}1365}
1366EXPORT_SYMBOL(generate_netlink_event);1366EXPORT_SYMBOL(thermal_generate_netlink_event);
1367 1367
1368static int genetlink_init(void)1368static int genetlink_init(void)
1369{1369{
include/linux/thermal.h+2−2
@@ -152,9 +152,9 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, · 151 unmodified lines
152void thermal_cooling_device_unregister(struct thermal_cooling_device *);152void thermal_cooling_device_unregister(struct thermal_cooling_device *);
153 153
154#ifdef CONFIG_NET154#ifdef CONFIG_NET
155extern int generate_netlink_event(u32 orig, enum events event);155extern int thermal_generate_netlink_event(u32 orig, enum events event);
156#else156#else
157static inline int generate_netlink_event(u32 orig, enum events event)157static inline int thermal_generate_netlink_event(u32 orig, enum events event)
158{158{
159 return 0;159 return 0;
160}160}