Commit ae031801 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: mite: make internal functions static

Declare some non-exported functions in "mite.c" `static` and remove
their declarations from "mite.h".
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0213674
...@@ -64,7 +64,7 @@ EXPORT_SYMBOL(mite_devices); ...@@ -64,7 +64,7 @@ EXPORT_SYMBOL(mite_devices);
#define TOP_OF_PAGE(x) ((x)|(~(PAGE_MASK))) #define TOP_OF_PAGE(x) ((x)|(~(PAGE_MASK)))
void mite_init(void) static void mite_init(void)
{ {
struct pci_dev *pcidev = NULL; struct pci_dev *pcidev = NULL;
struct mite_struct *mite; struct mite_struct *mite;
...@@ -206,7 +206,7 @@ int mite_setup(struct mite_struct *mite) ...@@ -206,7 +206,7 @@ int mite_setup(struct mite_struct *mite)
} }
EXPORT_SYMBOL(mite_setup); EXPORT_SYMBOL(mite_setup);
void mite_cleanup(void) static void mite_cleanup(void)
{ {
struct mite_struct *mite, *next; struct mite_struct *mite, *next;
...@@ -483,7 +483,7 @@ void mite_prep_dma(struct mite_channel *mite_chan, ...@@ -483,7 +483,7 @@ void mite_prep_dma(struct mite_channel *mite_chan,
} }
EXPORT_SYMBOL(mite_prep_dma); EXPORT_SYMBOL(mite_prep_dma);
u32 mite_device_bytes_transferred(struct mite_channel *mite_chan) static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan)
{ {
struct mite_struct *mite = mite_chan->mite; struct mite_struct *mite = mite_chan->mite;
return readl(mite->mite_io_addr + MITE_DAR(mite_chan->channel)); return readl(mite->mite_io_addr + MITE_DAR(mite_chan->channel));
......
...@@ -123,8 +123,6 @@ static inline unsigned int mite_device_id(struct mite_struct *mite) ...@@ -123,8 +123,6 @@ static inline unsigned int mite_device_id(struct mite_struct *mite)
return mite->pcidev->device; return mite->pcidev->device;
}; };
void mite_init(void);
void mite_cleanup(void);
int mite_setup(struct mite_struct *mite); int mite_setup(struct mite_struct *mite);
int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1); int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1);
void mite_unsetup(struct mite_struct *mite); void mite_unsetup(struct mite_struct *mite);
......
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