staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols

Comedi is licensed under GPL. Some if its exports are currently
EXPORT_SYMBOL() and others are EXPORT_SYMBOL_GPL(). Change them all
to EXPORT_SYMBOL_GPL() and see if anyone reports any fall out.

If any of the symbols "need" to be EXPORT_SYMBOL() they will be
addressed as needed.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
H Hartley Sweeten 2013-04-12 10:11:54 -07:00 committed by Greg Kroah-Hartman
parent dd671a3948
commit 5660e74271
8 changed files with 61 additions and 61 deletions

View File

@ -192,7 +192,7 @@ unsigned int comedi_buf_write_alloc(struct comedi_async *async,
{ {
return __comedi_buf_write_alloc(async, nbytes, 0); return __comedi_buf_write_alloc(async, nbytes, 0);
} }
EXPORT_SYMBOL(comedi_buf_write_alloc); EXPORT_SYMBOL_GPL(comedi_buf_write_alloc);
/* /*
* munging is applied to data by core as it passes between user * munging is applied to data by core as it passes between user
@ -263,7 +263,7 @@ unsigned int comedi_buf_write_free(struct comedi_async *async,
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_write_free); EXPORT_SYMBOL_GPL(comedi_buf_write_free);
unsigned int comedi_buf_read_n_available(struct comedi_async *async) unsigned int comedi_buf_read_n_available(struct comedi_async *async)
{ {
@ -282,7 +282,7 @@ unsigned int comedi_buf_read_n_available(struct comedi_async *async)
return num_bytes; return num_bytes;
} }
EXPORT_SYMBOL(comedi_buf_read_n_available); EXPORT_SYMBOL_GPL(comedi_buf_read_n_available);
/* 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 int comedi_buf_read_alloc(struct comedi_async *async, unsigned int comedi_buf_read_alloc(struct comedi_async *async,
@ -304,7 +304,7 @@ unsigned int comedi_buf_read_alloc(struct comedi_async *async,
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_read_alloc); EXPORT_SYMBOL_GPL(comedi_buf_read_alloc);
static unsigned int comedi_buf_read_n_allocated(struct comedi_async *async) static unsigned int comedi_buf_read_n_allocated(struct comedi_async *async)
{ {
@ -332,7 +332,7 @@ unsigned int comedi_buf_read_free(struct comedi_async *async,
async->buf_read_ptr %= async->prealloc_bufsz; async->buf_read_ptr %= async->prealloc_bufsz;
return nbytes; return nbytes;
} }
EXPORT_SYMBOL(comedi_buf_read_free); EXPORT_SYMBOL_GPL(comedi_buf_read_free);
int comedi_buf_put(struct comedi_async *async, short x) int comedi_buf_put(struct comedi_async *async, short x)
{ {
@ -346,7 +346,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); EXPORT_SYMBOL_GPL(comedi_buf_put);
int comedi_buf_get(struct comedi_async *async, short *x) int comedi_buf_get(struct comedi_async *async, short *x)
{ {
@ -359,7 +359,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); EXPORT_SYMBOL_GPL(comedi_buf_get);
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)
@ -385,7 +385,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); EXPORT_SYMBOL_GPL(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)
@ -412,4 +412,4 @@ void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset,
read_ptr = 0; read_ptr = 0;
} }
} }
EXPORT_SYMBOL(comedi_buf_memcpy_from); EXPORT_SYMBOL_GPL(comedi_buf_memcpy_from);

View File

@ -55,7 +55,7 @@
#ifdef CONFIG_COMEDI_DEBUG #ifdef CONFIG_COMEDI_DEBUG
int comedi_debug; int comedi_debug;
EXPORT_SYMBOL(comedi_debug); EXPORT_SYMBOL_GPL(comedi_debug);
module_param(comedi_debug, int, S_IRUGO | S_IWUSR); module_param(comedi_debug, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(comedi_debug, MODULE_PARM_DESC(comedi_debug,
"enable comedi core and driver debugging if non-zero (default 0)" "enable comedi core and driver debugging if non-zero (default 0)"
@ -2344,7 +2344,7 @@ void comedi_error(const struct comedi_device *dev, const char *s)
{ {
dev_err(dev->class_dev, "%s: %s\n", dev->driver->driver_name, s); dev_err(dev->class_dev, "%s: %s\n", dev->driver->driver_name, s);
} }
EXPORT_SYMBOL(comedi_error); EXPORT_SYMBOL_GPL(comedi_error);
void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s) void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s)
{ {
@ -2387,7 +2387,7 @@ void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s)
} }
s->async->events = 0; s->async->events = 0;
} }
EXPORT_SYMBOL(comedi_event); EXPORT_SYMBOL_GPL(comedi_event);
/* Note: the ->mutex is pre-locked on successful return */ /* Note: the ->mutex is pre-locked on successful return */
struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device) struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device)

View File

@ -494,7 +494,7 @@ int comedi_driver_register(struct comedi_driver *driver)
return 0; return 0;
} }
EXPORT_SYMBOL(comedi_driver_register); EXPORT_SYMBOL_GPL(comedi_driver_register);
int comedi_driver_unregister(struct comedi_driver *driver) int comedi_driver_unregister(struct comedi_driver *driver)
{ {
@ -532,4 +532,4 @@ int comedi_driver_unregister(struct comedi_driver *driver)
} }
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL(comedi_driver_unregister); EXPORT_SYMBOL_GPL(comedi_driver_unregister);

View File

@ -129,7 +129,7 @@ void subdev_8255_interrupt(struct comedi_device *dev,
comedi_event(dev, s); comedi_event(dev, s);
} }
EXPORT_SYMBOL(subdev_8255_interrupt); EXPORT_SYMBOL_GPL(subdev_8255_interrupt);
static int subdev_8255_insn(struct comedi_device *dev, static int subdev_8255_insn(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
@ -314,7 +314,7 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
return 0; return 0;
} }
EXPORT_SYMBOL(subdev_8255_init); EXPORT_SYMBOL_GPL(subdev_8255_init);
int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s, int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
int (*io) (int, int, int, unsigned long), int (*io) (int, int, int, unsigned long),
@ -332,13 +332,13 @@ int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
return 0; return 0;
} }
EXPORT_SYMBOL(subdev_8255_init_irq); EXPORT_SYMBOL_GPL(subdev_8255_init_irq);
void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s) void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
{ {
kfree(s->private); kfree(s->private);
} }
EXPORT_SYMBOL(subdev_8255_cleanup); EXPORT_SYMBOL_GPL(subdev_8255_cleanup);
/* /*

View File

@ -65,7 +65,7 @@ unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *subd,
return num_bytes; return num_bytes;
} }
EXPORT_SYMBOL(cfc_write_array_to_buffer); EXPORT_SYMBOL_GPL(cfc_write_array_to_buffer);
unsigned int cfc_read_array_from_buffer(struct comedi_subdevice *subd, unsigned int cfc_read_array_from_buffer(struct comedi_subdevice *subd,
void *data, unsigned int num_bytes) void *data, unsigned int num_bytes)
@ -83,7 +83,7 @@ unsigned int cfc_read_array_from_buffer(struct comedi_subdevice *subd,
return num_bytes; return num_bytes;
} }
EXPORT_SYMBOL(cfc_read_array_from_buffer); EXPORT_SYMBOL_GPL(cfc_read_array_from_buffer);
unsigned int cfc_handle_events(struct comedi_device *dev, unsigned int cfc_handle_events(struct comedi_device *dev,
struct comedi_subdevice *subd) struct comedi_subdevice *subd)
@ -100,7 +100,7 @@ unsigned int cfc_handle_events(struct comedi_device *dev,
return events; return events;
} }
EXPORT_SYMBOL(cfc_handle_events); EXPORT_SYMBOL_GPL(cfc_handle_events);
MODULE_AUTHOR("Frank Mori Hess <fmhess@users.sourceforge.net>"); MODULE_AUTHOR("Frank Mori Hess <fmhess@users.sourceforge.net>");
MODULE_DESCRIPTION("Shared functions for Comedi low-level drivers"); MODULE_DESCRIPTION("Shared functions for Comedi low-level drivers");

View File

@ -77,7 +77,7 @@ struct mite_struct *mite_alloc(struct pci_dev *pcidev)
} }
return mite; return mite;
} }
EXPORT_SYMBOL(mite_alloc); EXPORT_SYMBOL_GPL(mite_alloc);
static void dump_chip_signature(u32 csigr_bits) static void dump_chip_signature(u32 csigr_bits)
{ {
@ -169,13 +169,13 @@ int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1)
dev_info(&mite->pcidev->dev, "fifo size is %i.\n", mite->fifo_size); dev_info(&mite->pcidev->dev, "fifo size is %i.\n", mite->fifo_size);
return 0; return 0;
} }
EXPORT_SYMBOL(mite_setup2); EXPORT_SYMBOL_GPL(mite_setup2);
int mite_setup(struct mite_struct *mite) int mite_setup(struct mite_struct *mite)
{ {
return mite_setup2(mite, 0); return mite_setup2(mite, 0);
} }
EXPORT_SYMBOL(mite_setup); EXPORT_SYMBOL_GPL(mite_setup);
void mite_unsetup(struct mite_struct *mite) void mite_unsetup(struct mite_struct *mite)
{ {
@ -195,7 +195,7 @@ void mite_unsetup(struct mite_struct *mite)
if (mite->mite_phys_addr) if (mite->mite_phys_addr)
mite->mite_phys_addr = 0; mite->mite_phys_addr = 0;
} }
EXPORT_SYMBOL(mite_unsetup); EXPORT_SYMBOL_GPL(mite_unsetup);
struct mite_dma_descriptor_ring *mite_alloc_ring(struct mite_struct *mite) struct mite_dma_descriptor_ring *mite_alloc_ring(struct mite_struct *mite)
{ {
@ -214,7 +214,7 @@ struct mite_dma_descriptor_ring *mite_alloc_ring(struct mite_struct *mite)
ring->descriptors_dma_addr = 0; ring->descriptors_dma_addr = 0;
return ring; return ring;
}; };
EXPORT_SYMBOL(mite_alloc_ring); EXPORT_SYMBOL_GPL(mite_alloc_ring);
void mite_free_ring(struct mite_dma_descriptor_ring *ring) void mite_free_ring(struct mite_dma_descriptor_ring *ring)
{ {
@ -230,7 +230,7 @@ void mite_free_ring(struct mite_dma_descriptor_ring *ring)
kfree(ring); kfree(ring);
} }
}; };
EXPORT_SYMBOL(mite_free_ring); EXPORT_SYMBOL_GPL(mite_free_ring);
struct mite_channel *mite_request_channel_in_range(struct mite_struct *mite, struct mite_channel *mite_request_channel_in_range(struct mite_struct *mite,
struct struct
@ -257,7 +257,7 @@ struct mite_channel *mite_request_channel_in_range(struct mite_struct *mite,
spin_unlock_irqrestore(&mite->lock, flags); spin_unlock_irqrestore(&mite->lock, flags);
return channel; return channel;
} }
EXPORT_SYMBOL(mite_request_channel_in_range); EXPORT_SYMBOL_GPL(mite_request_channel_in_range);
void mite_release_channel(struct mite_channel *mite_chan) void mite_release_channel(struct mite_channel *mite_chan)
{ {
@ -284,7 +284,7 @@ void mite_release_channel(struct mite_channel *mite_chan)
} }
spin_unlock_irqrestore(&mite->lock, flags); spin_unlock_irqrestore(&mite->lock, flags);
} }
EXPORT_SYMBOL(mite_release_channel); EXPORT_SYMBOL_GPL(mite_release_channel);
void mite_dma_arm(struct mite_channel *mite_chan) void mite_dma_arm(struct mite_channel *mite_chan)
{ {
@ -307,7 +307,7 @@ void mite_dma_arm(struct mite_channel *mite_chan)
spin_unlock_irqrestore(&mite->lock, flags); spin_unlock_irqrestore(&mite->lock, flags);
/* mite_dma_tcr(mite, channel); */ /* mite_dma_tcr(mite, channel); */
} }
EXPORT_SYMBOL(mite_dma_arm); EXPORT_SYMBOL_GPL(mite_dma_arm);
/**************************************/ /**************************************/
@ -364,7 +364,7 @@ int mite_buf_change(struct mite_dma_descriptor_ring *ring,
smp_wmb(); smp_wmb();
return 0; return 0;
} }
EXPORT_SYMBOL(mite_buf_change); EXPORT_SYMBOL_GPL(mite_buf_change);
void mite_prep_dma(struct mite_channel *mite_chan, void mite_prep_dma(struct mite_channel *mite_chan,
unsigned int num_device_bits, unsigned int num_memory_bits) unsigned int num_device_bits, unsigned int num_memory_bits)
@ -455,7 +455,7 @@ void mite_prep_dma(struct mite_channel *mite_chan,
MDPRINTK("exit mite_prep_dma\n"); MDPRINTK("exit mite_prep_dma\n");
} }
EXPORT_SYMBOL(mite_prep_dma); EXPORT_SYMBOL_GPL(mite_prep_dma);
static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan) static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan)
{ {
@ -469,7 +469,7 @@ u32 mite_bytes_in_transit(struct mite_channel *mite_chan)
return readl(mite->mite_io_addr + return readl(mite->mite_io_addr +
MITE_FCR(mite_chan->channel)) & 0x000000FF; MITE_FCR(mite_chan->channel)) & 0x000000FF;
} }
EXPORT_SYMBOL(mite_bytes_in_transit); EXPORT_SYMBOL_GPL(mite_bytes_in_transit);
/* returns lower bound for number of bytes transferred from device to memory */ /* returns lower bound for number of bytes transferred from device to memory */
u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan) u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan)
@ -479,7 +479,7 @@ u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan)
device_byte_count = mite_device_bytes_transferred(mite_chan); device_byte_count = mite_device_bytes_transferred(mite_chan);
return device_byte_count - mite_bytes_in_transit(mite_chan); return device_byte_count - mite_bytes_in_transit(mite_chan);
} }
EXPORT_SYMBOL(mite_bytes_written_to_memory_lb); EXPORT_SYMBOL_GPL(mite_bytes_written_to_memory_lb);
/* returns upper bound for number of bytes transferred from device to memory */ /* returns upper bound for number of bytes transferred from device to memory */
u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan) u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan)
@ -489,7 +489,7 @@ u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan)
in_transit_count = mite_bytes_in_transit(mite_chan); in_transit_count = mite_bytes_in_transit(mite_chan);
return mite_device_bytes_transferred(mite_chan) - in_transit_count; return mite_device_bytes_transferred(mite_chan) - in_transit_count;
} }
EXPORT_SYMBOL(mite_bytes_written_to_memory_ub); EXPORT_SYMBOL_GPL(mite_bytes_written_to_memory_ub);
/* returns lower bound for number of bytes read from memory to device */ /* returns lower bound for number of bytes read from memory to device */
u32 mite_bytes_read_from_memory_lb(struct mite_channel *mite_chan) u32 mite_bytes_read_from_memory_lb(struct mite_channel *mite_chan)
@ -499,7 +499,7 @@ u32 mite_bytes_read_from_memory_lb(struct mite_channel *mite_chan)
device_byte_count = mite_device_bytes_transferred(mite_chan); device_byte_count = mite_device_bytes_transferred(mite_chan);
return device_byte_count + mite_bytes_in_transit(mite_chan); return device_byte_count + mite_bytes_in_transit(mite_chan);
} }
EXPORT_SYMBOL(mite_bytes_read_from_memory_lb); EXPORT_SYMBOL_GPL(mite_bytes_read_from_memory_lb);
/* returns upper bound for number of bytes read from memory to device */ /* returns upper bound for number of bytes read from memory to device */
u32 mite_bytes_read_from_memory_ub(struct mite_channel *mite_chan) u32 mite_bytes_read_from_memory_ub(struct mite_channel *mite_chan)
@ -509,7 +509,7 @@ u32 mite_bytes_read_from_memory_ub(struct mite_channel *mite_chan)
in_transit_count = mite_bytes_in_transit(mite_chan); in_transit_count = mite_bytes_in_transit(mite_chan);
return mite_device_bytes_transferred(mite_chan) + in_transit_count; return mite_device_bytes_transferred(mite_chan) + in_transit_count;
} }
EXPORT_SYMBOL(mite_bytes_read_from_memory_ub); EXPORT_SYMBOL_GPL(mite_bytes_read_from_memory_ub);
unsigned mite_dma_tcr(struct mite_channel *mite_chan) unsigned mite_dma_tcr(struct mite_channel *mite_chan)
{ {
@ -524,7 +524,7 @@ unsigned mite_dma_tcr(struct mite_channel *mite_chan)
return tcr; return tcr;
} }
EXPORT_SYMBOL(mite_dma_tcr); EXPORT_SYMBOL_GPL(mite_dma_tcr);
void mite_dma_disarm(struct mite_channel *mite_chan) void mite_dma_disarm(struct mite_channel *mite_chan)
{ {
@ -535,7 +535,7 @@ void mite_dma_disarm(struct mite_channel *mite_chan)
chor = CHOR_ABORT; chor = CHOR_ABORT;
writel(chor, mite->mite_io_addr + MITE_CHOR(mite_chan->channel)); writel(chor, mite->mite_io_addr + MITE_CHOR(mite_chan->channel));
} }
EXPORT_SYMBOL(mite_dma_disarm); EXPORT_SYMBOL_GPL(mite_dma_disarm);
int mite_sync_input_dma(struct mite_channel *mite_chan, int mite_sync_input_dma(struct mite_channel *mite_chan,
struct comedi_async *async) struct comedi_async *async)
@ -573,7 +573,7 @@ int mite_sync_input_dma(struct mite_channel *mite_chan,
async->events |= COMEDI_CB_BLOCK; async->events |= COMEDI_CB_BLOCK;
return 0; return 0;
} }
EXPORT_SYMBOL(mite_sync_input_dma); EXPORT_SYMBOL_GPL(mite_sync_input_dma);
int mite_sync_output_dma(struct mite_channel *mite_chan, int mite_sync_output_dma(struct mite_channel *mite_chan,
struct comedi_async *async) struct comedi_async *async)
@ -611,7 +611,7 @@ int mite_sync_output_dma(struct mite_channel *mite_chan,
} }
return 0; return 0;
} }
EXPORT_SYMBOL(mite_sync_output_dma); EXPORT_SYMBOL_GPL(mite_sync_output_dma);
unsigned mite_get_status(struct mite_channel *mite_chan) unsigned mite_get_status(struct mite_channel *mite_chan)
{ {
@ -630,7 +630,7 @@ unsigned mite_get_status(struct mite_channel *mite_chan)
spin_unlock_irqrestore(&mite->lock, flags); spin_unlock_irqrestore(&mite->lock, flags);
return status; return status;
} }
EXPORT_SYMBOL(mite_get_status); EXPORT_SYMBOL_GPL(mite_get_status);
int mite_done(struct mite_channel *mite_chan) int mite_done(struct mite_channel *mite_chan)
{ {
@ -644,7 +644,7 @@ int mite_done(struct mite_channel *mite_chan)
spin_unlock_irqrestore(&mite->lock, flags); spin_unlock_irqrestore(&mite->lock, flags);
return done; return done;
} }
EXPORT_SYMBOL(mite_done); EXPORT_SYMBOL_GPL(mite_done);
#ifdef DEBUG_MITE #ifdef DEBUG_MITE
@ -777,7 +777,7 @@ void mite_dump_regs(struct mite_channel *mite_chan)
value = readl(mite_io_addr + offset); value = readl(mite_io_addr + offset);
pr_debug("mite status[FCR] at 0x%08x =0x%08x\n", offset, value); pr_debug("mite status[FCR] at 0x%08x =0x%08x\n", offset, value);
} }
EXPORT_SYMBOL(mite_dump_regs); EXPORT_SYMBOL_GPL(mite_dump_regs);
#endif #endif
static int __init mite_module_init(void) static int __init mite_module_init(void)

View File

@ -63,7 +63,7 @@ struct comedi_device *comedi_open(const char *filename)
return dev; return dev;
} }
EXPORT_SYMBOL(comedi_open); EXPORT_SYMBOL_GPL(comedi_open);
int comedi_close(struct comedi_device *d) int comedi_close(struct comedi_device *d)
{ {
@ -73,7 +73,7 @@ int comedi_close(struct comedi_device *d)
return 0; return 0;
} }
EXPORT_SYMBOL(comedi_close); EXPORT_SYMBOL_GPL(comedi_close);
static int comedi_do_insn(struct comedi_device *dev, static int comedi_do_insn(struct comedi_device *dev,
struct comedi_insn *insn, struct comedi_insn *insn,
@ -143,7 +143,7 @@ int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
return comedi_do_insn(dev, &insn, &io); return comedi_do_insn(dev, &insn, &io);
} }
EXPORT_SYMBOL(comedi_dio_config); EXPORT_SYMBOL_GPL(comedi_dio_config);
int comedi_dio_bitfield(struct comedi_device *dev, unsigned int subdev, int comedi_dio_bitfield(struct comedi_device *dev, unsigned int subdev,
unsigned int mask, unsigned int *bits) unsigned int mask, unsigned int *bits)
@ -166,7 +166,7 @@ int comedi_dio_bitfield(struct comedi_device *dev, unsigned int subdev,
return ret; return ret;
} }
EXPORT_SYMBOL(comedi_dio_bitfield); EXPORT_SYMBOL_GPL(comedi_dio_bitfield);
int comedi_find_subdevice_by_type(struct comedi_device *dev, int type, int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
unsigned int subd) unsigned int subd)
@ -183,7 +183,7 @@ int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
} }
return -1; return -1;
} }
EXPORT_SYMBOL(comedi_find_subdevice_by_type); EXPORT_SYMBOL_GPL(comedi_find_subdevice_by_type);
int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice) int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice)
{ {
@ -191,4 +191,4 @@ int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice)
return s->n_chan; return s->n_chan;
} }
EXPORT_SYMBOL(comedi_get_n_channels); EXPORT_SYMBOL_GPL(comedi_get_n_channels);

View File

@ -26,25 +26,25 @@
#include "comedi_internal.h" #include "comedi_internal.h"
const struct comedi_lrange range_bipolar10 = { 1, {BIP_RANGE(10)} }; const struct comedi_lrange range_bipolar10 = { 1, {BIP_RANGE(10)} };
EXPORT_SYMBOL(range_bipolar10); EXPORT_SYMBOL_GPL(range_bipolar10);
const struct comedi_lrange range_bipolar5 = { 1, {BIP_RANGE(5)} }; const struct comedi_lrange range_bipolar5 = { 1, {BIP_RANGE(5)} };
EXPORT_SYMBOL(range_bipolar5); EXPORT_SYMBOL_GPL(range_bipolar5);
const struct comedi_lrange range_bipolar2_5 = { 1, {BIP_RANGE(2.5)} }; const struct comedi_lrange range_bipolar2_5 = { 1, {BIP_RANGE(2.5)} };
EXPORT_SYMBOL(range_bipolar2_5); EXPORT_SYMBOL_GPL(range_bipolar2_5);
const struct comedi_lrange range_unipolar10 = { 1, {UNI_RANGE(10)} }; const struct comedi_lrange range_unipolar10 = { 1, {UNI_RANGE(10)} };
EXPORT_SYMBOL(range_unipolar10); EXPORT_SYMBOL_GPL(range_unipolar10);
const struct comedi_lrange range_unipolar5 = { 1, {UNI_RANGE(5)} }; const struct comedi_lrange range_unipolar5 = { 1, {UNI_RANGE(5)} };
EXPORT_SYMBOL(range_unipolar5); EXPORT_SYMBOL_GPL(range_unipolar5);
const struct comedi_lrange range_unipolar2_5 = { 1, {UNI_RANGE(2.5)} }; const struct comedi_lrange range_unipolar2_5 = { 1, {UNI_RANGE(2.5)} };
EXPORT_SYMBOL(range_unipolar2_5); EXPORT_SYMBOL_GPL(range_unipolar2_5);
const struct comedi_lrange range_0_20mA = { 1, {RANGE_mA(0, 20)} }; const struct comedi_lrange range_0_20mA = { 1, {RANGE_mA(0, 20)} };
EXPORT_SYMBOL(range_0_20mA); EXPORT_SYMBOL_GPL(range_0_20mA);
const struct comedi_lrange range_4_20mA = { 1, {RANGE_mA(4, 20)} }; const struct comedi_lrange range_4_20mA = { 1, {RANGE_mA(4, 20)} };
EXPORT_SYMBOL(range_4_20mA); EXPORT_SYMBOL_GPL(range_4_20mA);
const struct comedi_lrange range_0_32mA = { 1, {RANGE_mA(0, 32)} }; const struct comedi_lrange range_0_32mA = { 1, {RANGE_mA(0, 32)} };
EXPORT_SYMBOL(range_0_32mA); EXPORT_SYMBOL_GPL(range_0_32mA);
const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none} } }; const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none} } };
EXPORT_SYMBOL(range_unknown); EXPORT_SYMBOL_GPL(range_unknown);
/* /*
COMEDI_RANGEINFO COMEDI_RANGEINFO
@ -173,4 +173,4 @@ int comedi_check_chanlist(struct comedi_subdevice *s, int n,
} }
return 0; return 0;
} }
EXPORT_SYMBOL(comedi_check_chanlist); EXPORT_SYMBOL_GPL(comedi_check_chanlist);