Skip to content

Commit

Permalink
staging: comedi: hwdrv_APCI1710: remove forward declarations
Browse files Browse the repository at this point in the history
None of the functions in this file are exported. Make all of them
static and remove the unnecessary forward declarations.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent 1305d30 commit cdd78fe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions drivers/staging/comedi/drivers/addi-data/hwdrv_APCI1710.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You should also find the complete GPL in the COPYING file accompanying this sour
#include "APCI1710_Pwm.c"
#include "APCI1710_INCCPT.c"

void i_ADDI_AttachPCI1710(struct comedi_device *dev)
static void i_ADDI_AttachPCI1710(struct comedi_device *dev)
{
struct comedi_subdevice *s;
int ret = 0;
Expand Down Expand Up @@ -195,11 +195,7 @@ void i_ADDI_AttachPCI1710(struct comedi_device *dev)
s->insn_bits = i_APCI1710_InsnBitsINCCPT;
}

int i_APCI1710_Reset(struct comedi_device *dev);
void v_APCI1710_Interrupt(int irq, void *d);
/* for 1710 */

int i_APCI1710_Reset(struct comedi_device *dev)
static int i_APCI1710_Reset(struct comedi_device *dev)
{
struct addi_private *devpriv = dev->private;
int ret;
Expand Down Expand Up @@ -248,7 +244,7 @@ int i_APCI1710_Reset(struct comedi_device *dev)
+----------------------------------------------------------------------------+
*/

void v_APCI1710_Interrupt(int irq, void *d)
static void v_APCI1710_Interrupt(int irq, void *d)
{
struct comedi_device *dev = d;
struct addi_private *devpriv = dev->private;
Expand Down

0 comments on commit cdd78fe

Please sign in to comment.