mirror of
https://github.com/torvalds/linux
synced 2024-10-25 20:59:03 +00:00
Staging: comedi: adq12b: Checkpatch cleanups
This fixes some checkpatch issues in the adq12b comedi driver. Signed-off-by: Benjamin Adolphi <b.adolphi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
0289bb5d18
commit
d2e01434fd
|
@ -164,14 +164,15 @@ struct adq12b_private {
|
|||
static int adq12b_attach(struct comedi_device *dev,
|
||||
struct comedi_devconfig *it);
|
||||
static int adq12b_detach(struct comedi_device *dev);
|
||||
|
||||
static struct comedi_driver driver_adq12b = {
|
||||
driver_name:"adq12b",
|
||||
module:THIS_MODULE,
|
||||
attach:adq12b_attach,
|
||||
detach:adq12b_detach,
|
||||
board_name:&adq12b_boards[0].name,
|
||||
offset:sizeof(struct adq12b_board),
|
||||
num_names:ARRAY_SIZE(adq12b_boards),
|
||||
.driver_name = "adq12b",
|
||||
.module = THIS_MODULE,
|
||||
.attach = adq12b_attach,
|
||||
.detach = adq12b_detach,
|
||||
.board_name = &adq12b_boards[0].name,
|
||||
.offset = sizeof(struct adq12b_board),
|
||||
.num_names = ARRAY_SIZE(adq12b_boards),
|
||||
};
|
||||
|
||||
static int adq12b_ai_rinsn(struct comedi_device *dev,
|
||||
|
@ -259,11 +260,10 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||
s->n_chan = thisboard->ai_se_chans;
|
||||
}
|
||||
|
||||
if (unipolar) {
|
||||
if (unipolar)
|
||||
s->range_table = &range_adq12b_ai_unipolar;
|
||||
} else {
|
||||
else
|
||||
s->range_table = &range_adq12b_ai_bipolar;
|
||||
}
|
||||
|
||||
s->maxdata = (1 << thisboard->ai_bits) - 1;
|
||||
|
||||
|
@ -344,11 +344,11 @@ static int adq12b_ai_rinsn(struct comedi_device *dev,
|
|||
/* wait for end of convertion */
|
||||
i = 0;
|
||||
do {
|
||||
/* udelay(1); */
|
||||
/* udelay(1); */
|
||||
status = inb(dev->iobase + ADQ12B_STINR);
|
||||
status = status & ADQ12B_EOC;
|
||||
} while (status == 0 && ++i < TIMEOUT);
|
||||
/* } while (++i < 10); */
|
||||
/* } while (++i < 10); */
|
||||
|
||||
/* read data */
|
||||
hi = inb(dev->iobase + ADQ12B_ADHIG);
|
||||
|
|
Loading…
Reference in a new issue