aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-02-26 16:32:36 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:01 -0400
commita0beec8f6fd37fc1418970ab6a574fabedd9e324 (patch)
treeafa3234d8c503619133ee0b9ee562ad41c9d3360 /drivers
parent05860f2d966c7d43aebde26eec7f9b8dee6d1523 (diff)
V4L/DVB (10753): siano: convert EXPORT_SYMBOL to EXPORT_SYMBOL_GPL
As pointed out by Mauro Chehab, we should always use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL wherever possible. A message was posted to the linux-media mailing list about this, checking with Uri Shkolnik of Siano Mobile Silicon if this is okay to convert. As per Uri's response to this email, it is OK for us to make this conversion. http://www.spinics.net/lists/linux-media/msg02200.html Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/siano/sms-cards.c12
-rw-r--r--drivers/media/dvb/siano/smscoreapi.c30
2 files changed, 21 insertions, 21 deletions
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c
index 44df81a81506..66f591937ff5 100644
--- a/drivers/media/dvb/siano/sms-cards.c
+++ b/drivers/media/dvb/siano/sms-cards.c
@@ -86,7 +86,7 @@ struct sms_board *sms_get_board(int id)
86 86
87 return &sms_boards[id]; 87 return &sms_boards[id];
88} 88}
89EXPORT_SYMBOL(sms_get_board); 89EXPORT_SYMBOL_GPL(sms_get_board);
90 90
91static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) 91static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable)
92{ 92{
@@ -139,7 +139,7 @@ int sms_board_setup(struct smscore_device_t *coredev)
139 } 139 }
140 return 0; 140 return 0;
141} 141}
142EXPORT_SYMBOL(sms_board_setup); 142EXPORT_SYMBOL_GPL(sms_board_setup);
143 143
144int sms_board_power(struct smscore_device_t *coredev, int onoff) 144int sms_board_power(struct smscore_device_t *coredev, int onoff)
145{ 145{
@@ -161,7 +161,7 @@ int sms_board_power(struct smscore_device_t *coredev, int onoff)
161 } 161 }
162 return 0; 162 return 0;
163} 163}
164EXPORT_SYMBOL(sms_board_power); 164EXPORT_SYMBOL_GPL(sms_board_power);
165 165
166int sms_board_led_feedback(struct smscore_device_t *coredev, int led) 166int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
167{ 167{
@@ -184,7 +184,7 @@ int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
184 } 184 }
185 return 0; 185 return 0;
186} 186}
187EXPORT_SYMBOL(sms_board_led_feedback); 187EXPORT_SYMBOL_GPL(sms_board_led_feedback);
188 188
189int sms_board_lna_control(struct smscore_device_t *coredev, int onoff) 189int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
190{ 190{
@@ -203,7 +203,7 @@ int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
203 } 203 }
204 return -EINVAL; 204 return -EINVAL;
205} 205}
206EXPORT_SYMBOL(sms_board_lna_control); 206EXPORT_SYMBOL_GPL(sms_board_lna_control);
207 207
208int sms_board_load_modules(int id) 208int sms_board_load_modules(int id)
209{ 209{
@@ -220,4 +220,4 @@ int sms_board_load_modules(int id)
220 } 220 }
221 return 0; 221 return 0;
222} 222}
223EXPORT_SYMBOL(sms_board_load_modules); 223EXPORT_SYMBOL_GPL(sms_board_load_modules);
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index d2669c8408ea..efa7a4192648 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -105,13 +105,13 @@ int smscore_led_state(struct smscore_device_t *core, int led)
105 core->led_state = led; 105 core->led_state = led;
106 return core->led_state; 106 return core->led_state;
107} 107}
108EXPORT_SYMBOL(smscore_set_board_id); 108EXPORT_SYMBOL_GPL(smscore_set_board_id);
109 109
110int smscore_get_board_id(struct smscore_device_t *core) 110int smscore_get_board_id(struct smscore_device_t *core)
111{ 111{
112 return core->board_id; 112 return core->board_id;
113} 113}
114EXPORT_SYMBOL(smscore_get_board_id); 114EXPORT_SYMBOL_GPL(smscore_get_board_id);
115 115
116struct smscore_registry_entry_t { 116struct smscore_registry_entry_t {
117 struct list_head entry; 117 struct list_head entry;
@@ -172,7 +172,7 @@ int smscore_registry_getmode(char *devpath)
172 172
173 return default_mode; 173 return default_mode;
174} 174}
175EXPORT_SYMBOL(smscore_registry_getmode); 175EXPORT_SYMBOL_GPL(smscore_registry_getmode);
176 176
177static enum sms_device_type_st smscore_registry_gettype(char *devpath) 177static enum sms_device_type_st smscore_registry_gettype(char *devpath)
178{ 178{
@@ -264,7 +264,7 @@ int smscore_register_hotplug(hotplug_t hotplug)
264 264
265 return rc; 265 return rc;
266} 266}
267EXPORT_SYMBOL(smscore_register_hotplug); 267EXPORT_SYMBOL_GPL(smscore_register_hotplug);
268 268
269/** 269/**
270 * unregister a client callback that called when device plugged in/unplugged 270 * unregister a client callback that called when device plugged in/unplugged
@@ -293,7 +293,7 @@ void smscore_unregister_hotplug(hotplug_t hotplug)
293 293
294 kmutex_unlock(&g_smscore_deviceslock); 294 kmutex_unlock(&g_smscore_deviceslock);
295} 295}
296EXPORT_SYMBOL(smscore_unregister_hotplug); 296EXPORT_SYMBOL_GPL(smscore_unregister_hotplug);
297 297
298static void smscore_notify_clients(struct smscore_device_t *coredev) 298static void smscore_notify_clients(struct smscore_device_t *coredev)
299{ 299{
@@ -437,7 +437,7 @@ int smscore_register_device(struct smsdevice_params_t *params,
437 437
438 return 0; 438 return 0;
439} 439}
440EXPORT_SYMBOL(smscore_register_device); 440EXPORT_SYMBOL_GPL(smscore_register_device);
441 441
442/** 442/**
443 * sets initial device mode and notifies client hotplugs that device is ready 443 * sets initial device mode and notifies client hotplugs that device is ready
@@ -466,7 +466,7 @@ int smscore_start_device(struct smscore_device_t *coredev)
466 466
467 return rc; 467 return rc;
468} 468}
469EXPORT_SYMBOL(smscore_start_device); 469EXPORT_SYMBOL_GPL(smscore_start_device);
470 470
471static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev, 471static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev,
472 void *buffer, size_t size, 472 void *buffer, size_t size,
@@ -695,7 +695,7 @@ void smscore_unregister_device(struct smscore_device_t *coredev)
695 695
696 sms_info("device %p destroyed", coredev); 696 sms_info("device %p destroyed", coredev);
697} 697}
698EXPORT_SYMBOL(smscore_unregister_device); 698EXPORT_SYMBOL_GPL(smscore_unregister_device);
699 699
700static int smscore_detect_mode(struct smscore_device_t *coredev) 700static int smscore_detect_mode(struct smscore_device_t *coredev)
701{ 701{
@@ -887,7 +887,7 @@ int smscore_get_device_mode(struct smscore_device_t *coredev)
887{ 887{
888 return coredev->mode; 888 return coredev->mode;
889} 889}
890EXPORT_SYMBOL(smscore_get_device_mode); 890EXPORT_SYMBOL_GPL(smscore_get_device_mode);
891 891
892/** 892/**
893 * find client by response id & type within the clients list. 893 * find client by response id & type within the clients list.
@@ -1015,7 +1015,7 @@ void smscore_onresponse(struct smscore_device_t *coredev,
1015 smscore_putbuffer(coredev, cb); 1015 smscore_putbuffer(coredev, cb);
1016 } 1016 }
1017} 1017}
1018EXPORT_SYMBOL(smscore_onresponse); 1018EXPORT_SYMBOL_GPL(smscore_onresponse);
1019 1019
1020/** 1020/**
1021 * return pointer to next free buffer descriptor from core pool 1021 * return pointer to next free buffer descriptor from core pool
@@ -1041,7 +1041,7 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev)
1041 1041
1042 return cb; 1042 return cb;
1043} 1043}
1044EXPORT_SYMBOL(smscore_getbuffer); 1044EXPORT_SYMBOL_GPL(smscore_getbuffer);
1045 1045
1046/** 1046/**
1047 * return buffer descriptor to a pool 1047 * return buffer descriptor to a pool
@@ -1056,7 +1056,7 @@ void smscore_putbuffer(struct smscore_device_t *coredev,
1056{ 1056{
1057 list_add_locked(&cb->entry, &coredev->buffers, &coredev->bufferslock); 1057 list_add_locked(&cb->entry, &coredev->buffers, &coredev->bufferslock);
1058} 1058}
1059EXPORT_SYMBOL(smscore_putbuffer); 1059EXPORT_SYMBOL_GPL(smscore_putbuffer);
1060 1060
1061static int smscore_validate_client(struct smscore_device_t *coredev, 1061static int smscore_validate_client(struct smscore_device_t *coredev,
1062 struct smscore_client_t *client, 1062 struct smscore_client_t *client,
@@ -1136,7 +1136,7 @@ int smscore_register_client(struct smscore_device_t *coredev,
1136 1136
1137 return 0; 1137 return 0;
1138} 1138}
1139EXPORT_SYMBOL(smscore_register_client); 1139EXPORT_SYMBOL_GPL(smscore_register_client);
1140 1140
1141/** 1141/**
1142 * frees smsclient object and all subclients associated with it 1142 * frees smsclient object and all subclients associated with it
@@ -1167,7 +1167,7 @@ void smscore_unregister_client(struct smscore_client_t *client)
1167 1167
1168 spin_unlock_irqrestore(&coredev->clientslock, flags); 1168 spin_unlock_irqrestore(&coredev->clientslock, flags);
1169} 1169}
1170EXPORT_SYMBOL(smscore_unregister_client); 1170EXPORT_SYMBOL_GPL(smscore_unregister_client);
1171 1171
1172/** 1172/**
1173 * verifies that source id is not taken by another client, 1173 * verifies that source id is not taken by another client,
@@ -1207,7 +1207,7 @@ int smsclient_sendrequest(struct smscore_client_t *client,
1207 1207
1208 return coredev->sendrequest_handler(coredev->context, buffer, size); 1208 return coredev->sendrequest_handler(coredev->context, buffer, size);
1209} 1209}
1210EXPORT_SYMBOL(smsclient_sendrequest); 1210EXPORT_SYMBOL_GPL(smsclient_sendrequest);
1211 1211
1212 1212
1213int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin, 1213int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,