Skip to content

Commit

Permalink
Staging: comedi: kcomedilib: comedi_do_insn is now static
Browse files Browse the repository at this point in the history
No one else calls this function, so mark it static.
Now we can strip out the unneeded functionality in here as well.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent a152575 commit 88cccef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/comedi/comedilib.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,4 @@ int comedi_dio_bitfield(void *dev, unsigned int subdev, unsigned int mask,
int comedi_find_subdevice_by_type(void *dev, int type, unsigned int subd);
int comedi_get_n_channels(void *dev, unsigned int subdevice);

/* internal to kcomedilb */
int comedi_do_insn(void *dev, struct comedi_insn *insn);

#endif
2 changes: 1 addition & 1 deletion drivers/staging/comedi/kcomedilib/kcomedilib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ EXPORT_SYMBOL(comedi_close);
* COMEDI_INSN
* perform an instruction
*/
int comedi_do_insn(void *d, struct comedi_insn *insn)
static int comedi_do_insn(void *d, struct comedi_insn *insn)
{
struct comedi_device *dev = (struct comedi_device *)d;
struct comedi_subdevice *s;
Expand Down

0 comments on commit 88cccef

Please sign in to comment.