Skip to content

Commit

Permalink
Staging: comedi: fix brace coding style issue in ni_atmio.c
Browse files Browse the repository at this point in the history
This is a patch to the ni_atmio.c file which fixes a brace and whitespace warning found by the checkpatch.pl tool

Signed-off-by: Jake Burton <jake5991@live.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jake Burton authored and Greg Kroah-Hartman committed Oct 17, 2011
1 parent 0bdd2b6 commit 963ff77
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/staging/comedi/drivers/ni_atmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ static const struct ni_board_struct ni_boards[] = {
}
};

static const int ni_irqpin[] =
{ -1, -1, -1, 0, 1, 2, -1, 3, -1, -1, 4, 5, 6, -1, -1, 7 };
static const int ni_irqpin[] = {
-1, -1, -1, 0, 1, 2, -1, 3, -1, -1, 4, 5, 6, -1, -1, 7
};

#define interrupt_pin(a) (ni_irqpin[(a)])

Expand All @@ -279,7 +280,10 @@ static const int ni_irqpin[] =

struct ni_private {
struct pnp_dev *isapnp_dev;
NI_PRIVATE_COMMON};
NI_PRIVATE_COMMON

};

#define devpriv ((struct ni_private *)dev->private)

/* How we access registers */
Expand Down

0 comments on commit 963ff77

Please sign in to comment.