Commit 28771088 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: comedi: daqboard2000: Remove function db2k_initialize_dac()

Remove function db2k_initialize_dac as all it does is call
db2k_dac_disarm.
Modify call site accordingly.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190725052359.2308-1-nishkadg.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e6998b1
...@@ -665,11 +665,6 @@ static void db2k_initialize_adc(struct comedi_device *dev) ...@@ -665,11 +665,6 @@ static void db2k_initialize_adc(struct comedi_device *dev)
db2k_initialize_tmrs(dev); db2k_initialize_tmrs(dev);
} }
static void db2k_initialize_dac(struct comedi_device *dev)
{
db2k_dac_disarm(dev);
}
static int db2k_8255_cb(struct comedi_device *dev, int dir, int port, int data, static int db2k_8255_cb(struct comedi_device *dev, int dir, int port, int data,
unsigned long iobase) unsigned long iobase)
{ {
...@@ -719,7 +714,7 @@ static int db2k_auto_attach(struct comedi_device *dev, unsigned long context) ...@@ -719,7 +714,7 @@ static int db2k_auto_attach(struct comedi_device *dev, unsigned long context)
return result; return result;
db2k_initialize_adc(dev); db2k_initialize_adc(dev);
db2k_initialize_dac(dev); db2k_dac_disarm(dev);
s = &dev->subdevices[0]; s = &dev->subdevices[0];
/* ai subdevice */ /* ai subdevice */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment