Commit 9439881a authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: ni_labpc: break lines after operators

For consistency, break lines before operators, not after.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e3f39b1
...@@ -720,9 +720,9 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -720,9 +720,9 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
struct comedi_async *async = s->async; struct comedi_async *async = s->async;
struct comedi_cmd *cmd = &async->cmd; struct comedi_cmd *cmd = &async->cmd;
enum scan_mode mode = labpc_ai_scan_mode(cmd); enum scan_mode mode = labpc_ai_scan_mode(cmd);
unsigned int chanspec = (mode == MODE_MULT_CHAN_UP) unsigned int chanspec = (mode == MODE_MULT_CHAN_UP) ?
? cmd->chanlist[cmd->chanlist_len - 1] cmd->chanlist[cmd->chanlist_len - 1] :
: cmd->chanlist[0]; cmd->chanlist[0];
unsigned int chan = CR_CHAN(chanspec); unsigned int chan = CR_CHAN(chanspec);
unsigned int range = CR_RANGE(chanspec); unsigned int range = CR_RANGE(chanspec);
unsigned int aref = CR_AREF(chanspec); unsigned int aref = CR_AREF(chanspec);
...@@ -1353,8 +1353,8 @@ int labpc_common_attach(struct comedi_device *dev, ...@@ -1353,8 +1353,8 @@ int labpc_common_attach(struct comedi_device *dev,
s->n_chan = 8; s->n_chan = 8;
s->len_chanlist = 8; s->len_chanlist = 8;
s->maxdata = 0x0fff; s->maxdata = 0x0fff;
s->range_table = board->is_labpc1200 s->range_table = board->is_labpc1200 ?
? &range_labpc_1200_ai : &range_labpc_plus_ai; &range_labpc_1200_ai : &range_labpc_plus_ai;
s->insn_read = labpc_ai_insn_read; s->insn_read = labpc_ai_insn_read;
if (dev->irq) { if (dev->irq) {
dev->read_subdev = s; dev->read_subdev = s;
......
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