staging: comedi: cleanup formating in drivers/8255.c
PATCH 1/2 staging: comedi: cleanup formating in drivers/8255.c
Clean up the formatting of braces to meet the coding standard.
Signed-off-by Bruce Jones <[email protected]>
--- drivers/staging/comedi/drivers/8255.c | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-)
drivers/staging/comedi/drivers/8255.c +6 -8
@@ -179,15 +179,14 @@ static int subdev_8255_insn_config(struct comedi_device *dev,unsigned int bits; mask =1 <<CR_CHAN (insn->chanspec); -if (mask &0x0000ff ) { +if (mask &0x0000ff ) bits =0x0000ff ; - }else if (mask &0x00ff00 ) { +else if (mask &0x00ff00 ) bits =0x00ff00 ; - }else if (mask &0x0f0000 ) { +else if (mask &0x0f0000 ) bits =0x0f0000 ; - }else { +else bits =0xf00000 ; - }switch (data[0 ]) {case INSN_CONFIG_DIO_INPUT :
@@ -333,11 +332,10 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,return -ENOMEM ;CALLBACK_ARG = arg; -if (cb ==NULL ) { +if (cb ==NULL )CALLBACK_FUNC = subdev_8255_cb; - }else { +else CALLBACK_FUNC = cb; - } s->insn_bits = subdev_8255_insn; s->insn_config = subdev_8255_insn_config;
Signature · 1 line
1.6.5.rc2
Quoted 1 line · Bruce Jones
Clean up the formatting of braces to meet the coding standard.
Sorry, someone already cleaned up the braces in this file, and beat you to it. What was the odds (hint, very low, pick another file and you should be fine.)
thanks,
greg k-h