return &sms_boards[id];
}
-EXPORT_SYMBOL(sms_get_board);
+EXPORT_SYMBOL_GPL(sms_get_board);
static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable)
{
}
return 0;
}
-EXPORT_SYMBOL(sms_board_setup);
+EXPORT_SYMBOL_GPL(sms_board_setup);
int sms_board_power(struct smscore_device_t *coredev, int onoff)
{
}
return 0;
}
-EXPORT_SYMBOL(sms_board_power);
+EXPORT_SYMBOL_GPL(sms_board_power);
int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
{
}
return 0;
}
-EXPORT_SYMBOL(sms_board_led_feedback);
+EXPORT_SYMBOL_GPL(sms_board_led_feedback);
int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
{
}
return -EINVAL;
}
-EXPORT_SYMBOL(sms_board_lna_control);
+EXPORT_SYMBOL_GPL(sms_board_lna_control);
int sms_board_load_modules(int id)
{
}
return 0;
}
-EXPORT_SYMBOL(sms_board_load_modules);
+EXPORT_SYMBOL_GPL(sms_board_load_modules);
core->led_state = led;
return core->led_state;
}
-EXPORT_SYMBOL(smscore_set_board_id);
+EXPORT_SYMBOL_GPL(smscore_set_board_id);
int smscore_get_board_id(struct smscore_device_t *core)
{
return core->board_id;
}
-EXPORT_SYMBOL(smscore_get_board_id);
+EXPORT_SYMBOL_GPL(smscore_get_board_id);
struct smscore_registry_entry_t {
struct list_head entry;
return default_mode;
}
-EXPORT_SYMBOL(smscore_registry_getmode);
+EXPORT_SYMBOL_GPL(smscore_registry_getmode);
static enum sms_device_type_st smscore_registry_gettype(char *devpath)
{
return rc;
}
-EXPORT_SYMBOL(smscore_register_hotplug);
+EXPORT_SYMBOL_GPL(smscore_register_hotplug);
/**
* unregister a client callback that called when device plugged in/unplugged
kmutex_unlock(&g_smscore_deviceslock);
}
-EXPORT_SYMBOL(smscore_unregister_hotplug);
+EXPORT_SYMBOL_GPL(smscore_unregister_hotplug);
static void smscore_notify_clients(struct smscore_device_t *coredev)
{
return 0;
}
-EXPORT_SYMBOL(smscore_register_device);
+EXPORT_SYMBOL_GPL(smscore_register_device);
/**
* sets initial device mode and notifies client hotplugs that device is ready
return rc;
}
-EXPORT_SYMBOL(smscore_start_device);
+EXPORT_SYMBOL_GPL(smscore_start_device);
static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev,
void *buffer, size_t size,
sms_info("device %p destroyed", coredev);
}
-EXPORT_SYMBOL(smscore_unregister_device);
+EXPORT_SYMBOL_GPL(smscore_unregister_device);
static int smscore_detect_mode(struct smscore_device_t *coredev)
{
{
return coredev->mode;
}
-EXPORT_SYMBOL(smscore_get_device_mode);
+EXPORT_SYMBOL_GPL(smscore_get_device_mode);
/**
* find client by response id & type within the clients list.
smscore_putbuffer(coredev, cb);
}
}
-EXPORT_SYMBOL(smscore_onresponse);
+EXPORT_SYMBOL_GPL(smscore_onresponse);
/**
* return pointer to next free buffer descriptor from core pool
return cb;
}
-EXPORT_SYMBOL(smscore_getbuffer);
+EXPORT_SYMBOL_GPL(smscore_getbuffer);
/**
* return buffer descriptor to a pool
{
list_add_locked(&cb->entry, &coredev->buffers, &coredev->bufferslock);
}
-EXPORT_SYMBOL(smscore_putbuffer);
+EXPORT_SYMBOL_GPL(smscore_putbuffer);
static int smscore_validate_client(struct smscore_device_t *coredev,
struct smscore_client_t *client,
return 0;
}
-EXPORT_SYMBOL(smscore_register_client);
+EXPORT_SYMBOL_GPL(smscore_register_client);
/**
* frees smsclient object and all subclients associated with it
spin_unlock_irqrestore(&coredev->clientslock, flags);
}
-EXPORT_SYMBOL(smscore_unregister_client);
+EXPORT_SYMBOL_GPL(smscore_unregister_client);
/**
* verifies that source id is not taken by another client,
return coredev->sendrequest_handler(coredev->context, buffer, size);
}
-EXPORT_SYMBOL(smsclient_sendrequest);
+EXPORT_SYMBOL_GPL(smsclient_sendrequest);
int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,