diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-21 22:17:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-26 11:54:08 -0400 |
commit | c5e0bd1a982ee449b3598600f85895dc3bc8c13f (patch) | |
tree | a63103bc30415afd19b37f4f3ac58a603ac9e603 /drivers/media/dvb/siano | |
parent | e5b13acf563e98ffc5dea8bebf80299a2a4ea088 (diff) |
V4L/DVB (8453): sms1xxx: dvb/siano/: cleanups
This patch contains the following cleanups:
- mark smscore_module_init() as __init
- mark smscore_module_exit as __exit
- make the following needlessly global code static:
- smscoreapi.c: struct g_smscore_notifyees
- smscoreapi.c: struct g_smscore_devices
- smscoreapi.c: struct g_smscore_deviceslock
- smscoreapi.c: struct g_smscore_registry
- smscoreapi.c: struct g_smscore_registrylock
- smscoreapi.c: smscore_module_init()
- smscoreapi.c: smscore_module_exit()
- smsdvb.c: struct g_smsdvb_clients
- smsdvb.c: struct g_smsdvb_clientslock
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 14 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smsdvb.c | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index b4b8ed795c95..c5f45fed69dc 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -110,12 +110,12 @@ struct smscore_registry_entry_t { | |||
110 | enum sms_device_type_st type; | 110 | enum sms_device_type_st type; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct list_head g_smscore_notifyees; | 113 | static struct list_head g_smscore_notifyees; |
114 | struct list_head g_smscore_devices; | 114 | static struct list_head g_smscore_devices; |
115 | struct mutex g_smscore_deviceslock; | 115 | static struct mutex g_smscore_deviceslock; |
116 | 116 | ||
117 | struct list_head g_smscore_registry; | 117 | static struct list_head g_smscore_registry; |
118 | struct mutex g_smscore_registrylock; | 118 | static struct mutex g_smscore_registrylock; |
119 | 119 | ||
120 | static int default_mode = 4; | 120 | static int default_mode = 4; |
121 | 121 | ||
@@ -1187,7 +1187,7 @@ int smsclient_sendrequest(struct smscore_client_t *client, | |||
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | 1189 | ||
1190 | int smscore_module_init(void) | 1190 | static int __init smscore_module_init(void) |
1191 | { | 1191 | { |
1192 | int rc = 0; | 1192 | int rc = 0; |
1193 | 1193 | ||
@@ -1209,7 +1209,7 @@ int smscore_module_init(void) | |||
1209 | return rc; | 1209 | return rc; |
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | void smscore_module_exit(void) | 1212 | static void __exit smscore_module_exit(void) |
1213 | { | 1213 | { |
1214 | 1214 | ||
1215 | kmutex_lock(&g_smscore_deviceslock); | 1215 | kmutex_lock(&g_smscore_deviceslock); |
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c index 6f9c18563867..229274a14110 100644 --- a/drivers/media/dvb/siano/smsdvb.c +++ b/drivers/media/dvb/siano/smsdvb.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 28 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
29 | 29 | ||
30 | struct list_head g_smsdvb_clients; | 30 | static struct list_head g_smsdvb_clients; |
31 | struct mutex g_smsdvb_clientslock; | 31 | static struct mutex g_smsdvb_clientslock; |
32 | 32 | ||
33 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) | 33 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) |
34 | { | 34 | { |