staging: comedi: ni_670x: rename 'thisboard' variables
For aesthetics, rename the 'thisboard' variables to 'board'. That name is more commonly used for the boardinfo pointer in comedi drivers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
91d4beba92
commit
6e2b126dbd
1 changed files with 6 additions and 6 deletions
|
@ -172,18 +172,18 @@ static int ni_670x_auto_attach(struct comedi_device *dev,
|
||||||
unsigned long context)
|
unsigned long context)
|
||||||
{
|
{
|
||||||
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
|
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
|
||||||
const struct ni_670x_board *thisboard = NULL;
|
const struct ni_670x_board *board = NULL;
|
||||||
struct ni_670x_private *devpriv;
|
struct ni_670x_private *devpriv;
|
||||||
struct comedi_subdevice *s;
|
struct comedi_subdevice *s;
|
||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (context < ARRAY_SIZE(ni_670x_boards))
|
if (context < ARRAY_SIZE(ni_670x_boards))
|
||||||
thisboard = &ni_670x_boards[context];
|
board = &ni_670x_boards[context];
|
||||||
if (!thisboard)
|
if (!board)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
dev->board_ptr = thisboard;
|
dev->board_ptr = board;
|
||||||
dev->board_name = thisboard->name;
|
dev->board_name = board->name;
|
||||||
|
|
||||||
ret = comedi_pci_enable(dev);
|
ret = comedi_pci_enable(dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -209,7 +209,7 @@ static int ni_670x_auto_attach(struct comedi_device *dev,
|
||||||
/* analog output subdevice */
|
/* analog output subdevice */
|
||||||
s->type = COMEDI_SUBD_AO;
|
s->type = COMEDI_SUBD_AO;
|
||||||
s->subdev_flags = SDF_WRITABLE;
|
s->subdev_flags = SDF_WRITABLE;
|
||||||
s->n_chan = thisboard->ao_chans;
|
s->n_chan = board->ao_chans;
|
||||||
s->maxdata = 0xffff;
|
s->maxdata = 0xffff;
|
||||||
if (s->n_chan == 32) {
|
if (s->n_chan == 32) {
|
||||||
const struct comedi_lrange **range_table_list;
|
const struct comedi_lrange **range_table_list;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue