Skip to content

Commit

Permalink
staging: comedi: quatech_daqp_cs: remove debug functions
Browse files Browse the repository at this point in the history
The functions daqp_dump() and hex_dump() are not used in this
driver. Just remove them.

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 Jan 30, 2013
1 parent 90967d6 commit 79a53df
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,32 +180,6 @@ static const struct comedi_lrange range_daqp_ai = { 4, {

static const struct comedi_lrange range_daqp_ao = { 1, {BIP_RANGE(5)} };

#ifdef DAQP_DEBUG

static void daqp_dump(struct comedi_device *dev)
{
dev_info(dev->class_dev, "status %02x; aux status %02x\n",
inb(dev->iobase + DAQP_STATUS), inb(dev->iobase + DAQP_AUX));
}

static void hex_dump(char *str, void *ptr, int len)
{
unsigned char *cptr = ptr;
int i;

printk(str);

for (i = 0; i < len; i++) {
if (i % 16 == 0)
printk("\n%p:", cptr);

printk(" %02x", *(cptr++));
}
printk("\n");
}

#endif

/* Cancel a running acquisition */

static int daqp_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
Expand Down

0 comments on commit 79a53df

Please sign in to comment.