[PATCH 312/577] Staging: comedi: make comedi_reset_async_buf local to comedi core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No one outside of the comedi core calls this function, so don't export
it to the world.

Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Frank Mori Hess <fmhess@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/staging/comedi/comedidev.h |    2 --
 drivers/staging/comedi/drivers.c   |    1 -
 drivers/staging/comedi/internal.h  |    1 +
 3 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index c72fd15..3ca5832 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -495,8 +495,6 @@ static inline unsigned comedi_buf_read_n_allocated(struct comedi_async *async)
 	return async->buf_read_alloc_count - async->buf_read_count;
 }
 
-void comedi_reset_async_buf(struct comedi_async *async);
-
 static inline void *comedi_aux_data(int options[], int n)
 {
 	unsigned long address;
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c
index 475778f..f68fab9 100644
--- a/drivers/staging/comedi/drivers.c
+++ b/drivers/staging/comedi/drivers.c
@@ -811,7 +811,6 @@ void comedi_reset_async_buf(struct comedi_async *async)
 
 	async->events = 0;
 }
-EXPORT_SYMBOL(comedi_reset_async_buf);
 
 int comedi_auto_config(struct device *hardware_device, const char *board_name,
 		       const int *options, unsigned num_options)
diff --git a/drivers/staging/comedi/internal.h b/drivers/staging/comedi/internal.h
index 4b6065a..7068a38 100644
--- a/drivers/staging/comedi/internal.h
+++ b/drivers/staging/comedi/internal.h
@@ -1,3 +1,4 @@
 
 int comedi_alloc_board_minor(struct device *hardware_device);
 void comedi_free_board_minor(unsigned minor);
+void comedi_reset_async_buf(struct comedi_async *async);
-- 
1.7.0.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux