summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorLuca Ellero <luca.ellero@brickedbrain.com>2014-09-19 13:50:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 15:58:18 -0700
commit5116a48c1b0b819b9276993479d193f37fbfbd0a (patch)
tree042a542cdc810304694d478321d2be9f0871660f /drivers/staging/comedi
parentd6669ba21b3e9b7c26aebbbe671ed77a1d756a70 (diff)
downloadlinux-5116a48c1b0b819b9276993479d193f37fbfbd0a.tar.bz2
staging: comedi: ni_usb6501: rename ni6501_send_command()
Rename ni6501_send_command to ni6501_port_command Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/ni_usb6501.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_usb6501.c b/drivers/staging/comedi/drivers/ni_usb6501.c
index 7a1d01649b8f..bf443af50120 100644
--- a/drivers/staging/comedi/drivers/ni_usb6501.c
+++ b/drivers/staging/comedi/drivers/ni_usb6501.c
@@ -172,7 +172,7 @@ struct ni6501_private {
u8 *usb_tx_buf;
};
-static int ni6501_send_command(struct comedi_device *dev, int command,
+static int ni6501_port_command(struct comedi_device *dev, int command,
const u8 *port, u8 *bitmap)
{
struct usb_device *usb = comedi_to_usb_dev(dev);
@@ -270,7 +270,7 @@ static int ni6501_dio_insn_config(struct comedi_device *dev,
port[1] = (s->io_bits >> 8) & 0xff;
port[2] = (s->io_bits >> 16) & 0xff;
- ret = ni6501_send_command(dev, SET_PORT_DIR, port, NULL);
+ ret = ni6501_port_command(dev, SET_PORT_DIR, port, NULL);
if (ret)
return ret;
@@ -292,7 +292,7 @@ static int ni6501_dio_insn_bits(struct comedi_device *dev,
for (port = 0; port < 3; port++) {
if (mask & (0xFF << port * 8)) {
bitmap = (s->state >> port * 8) & 0xFF;
- ret = ni6501_send_command(dev, WRITE_PORT,
+ ret = ni6501_port_command(dev, WRITE_PORT,
&port, &bitmap);
if (ret)
return ret;
@@ -302,7 +302,7 @@ static int ni6501_dio_insn_bits(struct comedi_device *dev,
data[1] = 0;
for (port = 0; port < 3; port++) {
- ret = ni6501_send_command(dev, READ_PORT, &port, &bitmap);
+ ret = ni6501_port_command(dev, READ_PORT, &port, &bitmap);
if (ret)
return ret;
data[1] |= bitmap << port * 8;