Commit d58214b0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: comedi: move a bunch of EXPORT_SYMBOL lines

Move the ones that are needed to be in drivers.c into the
file.  This is with the goal of deleting the comedi_ksyms.c
file.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d20cf2fe
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "comedidev.h" #include "comedidev.h"
/* for drivers */ /* for drivers */
EXPORT_SYMBOL(comedi_driver_register);
EXPORT_SYMBOL(comedi_driver_unregister);
EXPORT_SYMBOL(comedi_error); EXPORT_SYMBOL(comedi_error);
EXPORT_SYMBOL(comedi_event); EXPORT_SYMBOL(comedi_event);
EXPORT_SYMBOL(comedi_get_subdevice_runflags); EXPORT_SYMBOL(comedi_get_subdevice_runflags);
...@@ -51,14 +49,3 @@ EXPORT_SYMBOL_GPL(comedi_usb_auto_unconfig); ...@@ -51,14 +49,3 @@ EXPORT_SYMBOL_GPL(comedi_usb_auto_unconfig);
/* for kcomedilib */ /* for kcomedilib */
EXPORT_SYMBOL(check_chanlist); EXPORT_SYMBOL(check_chanlist);
EXPORT_SYMBOL_GPL(comedi_get_device_file_info); EXPORT_SYMBOL_GPL(comedi_get_device_file_info);
EXPORT_SYMBOL(comedi_buf_put);
EXPORT_SYMBOL(comedi_buf_get);
EXPORT_SYMBOL(comedi_buf_read_n_available);
EXPORT_SYMBOL(comedi_buf_write_free);
EXPORT_SYMBOL(comedi_buf_write_alloc);
EXPORT_SYMBOL(comedi_buf_read_free);
EXPORT_SYMBOL(comedi_buf_read_alloc);
EXPORT_SYMBOL(comedi_buf_memcpy_to);
EXPORT_SYMBOL(comedi_buf_memcpy_from);
EXPORT_SYMBOL(comedi_reset_async_buf);
...@@ -188,6 +188,7 @@ int comedi_driver_register(struct comedi_driver *driver) ...@@ -188,6 +188,7 @@ int comedi_driver_register(struct comedi_driver *driver)
return 0; return 0;
} }
EXPORT_SYMBOL(comedi_driver_register);
int comedi_driver_unregister(struct comedi_driver *driver) int comedi_driver_unregister(struct comedi_driver *driver)
{ {
...@@ -228,6 +229,7 @@ int comedi_driver_unregister(struct comedi_driver *driver) ...@@ -228,6 +229,7 @@ int comedi_driver_unregister(struct comedi_driver *driver)
} }
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL(comedi_driver_unregister);
static int postconfig(struct comedi_device *dev) static int postconfig(struct comedi_device *dev)
{ {
...@@ -621,6 +623,7 @@ unsigned int comedi_buf_write_alloc(struct comedi_async *async, ...@@ -621,6 +623,7 @@ unsigned int comedi_buf_write_alloc(struct comedi_async *async,
smp_mb(); smp_mb();
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_write_alloc);
/* allocates nothing unless it can completely fulfill the request */ /* allocates nothing unless it can completely fulfill the request */
unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async, unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async,
...@@ -655,6 +658,7 @@ unsigned comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes) ...@@ -655,6 +658,7 @@ unsigned comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes)
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_write_free);
/* allocates a chunk for the reader from filled (and munged) buffer space */ /* allocates a chunk for the reader from filled (and munged) buffer space */
unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes) unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes)
...@@ -669,6 +673,7 @@ unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes) ...@@ -669,6 +673,7 @@ unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes)
smp_rmb(); smp_rmb();
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_read_alloc);
/* transfers control of a chunk from reader to free buffer space */ /* transfers control of a chunk from reader to free buffer space */
unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes) unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes)
...@@ -687,6 +692,7 @@ unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes) ...@@ -687,6 +692,7 @@ unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes)
async->buf_read_ptr %= async->prealloc_bufsz; async->buf_read_ptr %= async->prealloc_bufsz;
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_read_free);
void comedi_buf_memcpy_to(struct comedi_async *async, unsigned int offset, void comedi_buf_memcpy_to(struct comedi_async *async, unsigned int offset,
const void *data, unsigned int num_bytes) const void *data, unsigned int num_bytes)
...@@ -712,6 +718,7 @@ void comedi_buf_memcpy_to(struct comedi_async *async, unsigned int offset, ...@@ -712,6 +718,7 @@ void comedi_buf_memcpy_to(struct comedi_async *async, unsigned int offset,
write_ptr = 0; write_ptr = 0;
} }
} }
EXPORT_SYMBOL(comedi_buf_memcpy_to);
void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset, void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset,
void *dest, unsigned int nbytes) void *dest, unsigned int nbytes)
...@@ -738,6 +745,7 @@ void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset, ...@@ -738,6 +745,7 @@ void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset,
read_ptr = 0; read_ptr = 0;
} }
} }
EXPORT_SYMBOL(comedi_buf_memcpy_from);
unsigned int comedi_buf_read_n_available(struct comedi_async *async) unsigned int comedi_buf_read_n_available(struct comedi_async *async)
{ {
...@@ -753,6 +761,7 @@ unsigned int comedi_buf_read_n_available(struct comedi_async *async) ...@@ -753,6 +761,7 @@ unsigned int comedi_buf_read_n_available(struct comedi_async *async)
smp_rmb(); smp_rmb();
return num_bytes; return num_bytes;
} }
EXPORT_SYMBOL(comedi_buf_read_n_available);
int comedi_buf_get(struct comedi_async *async, short *x) int comedi_buf_get(struct comedi_async *async, short *x)
{ {
...@@ -765,6 +774,7 @@ int comedi_buf_get(struct comedi_async *async, short *x) ...@@ -765,6 +774,7 @@ int comedi_buf_get(struct comedi_async *async, short *x)
comedi_buf_read_free(async, sizeof(short)); comedi_buf_read_free(async, sizeof(short));
return 1; return 1;
} }
EXPORT_SYMBOL(comedi_buf_get);
int comedi_buf_put(struct comedi_async *async, short x) int comedi_buf_put(struct comedi_async *async, short x)
{ {
...@@ -778,6 +788,7 @@ int comedi_buf_put(struct comedi_async *async, short x) ...@@ -778,6 +788,7 @@ int comedi_buf_put(struct comedi_async *async, short x)
comedi_buf_write_free(async, sizeof(short)); comedi_buf_write_free(async, sizeof(short));
return 1; return 1;
} }
EXPORT_SYMBOL(comedi_buf_put);
void comedi_reset_async_buf(struct comedi_async *async) void comedi_reset_async_buf(struct comedi_async *async)
{ {
...@@ -797,6 +808,7 @@ void comedi_reset_async_buf(struct comedi_async *async) ...@@ -797,6 +808,7 @@ void comedi_reset_async_buf(struct comedi_async *async)
async->events = 0; async->events = 0;
} }
EXPORT_SYMBOL(comedi_reset_async_buf);
int comedi_auto_config(struct device *hardware_device, const char *board_name, int comedi_auto_config(struct device *hardware_device, const char *board_name,
const int *options, unsigned num_options) const int *options, unsigned num_options)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment