Skip to content

Commit

Permalink
Input: grip-mp - use ARRAY_SIZE
Browse files Browse the repository at this point in the history
Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Andi Drebes authored and Dmitry Torokhov committed Jul 10, 2007
1 parent 7ecfbfd commit 5ec1f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/joystick/grip_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ static int multiport_io(struct gameport* gameport, int sendflags, int sendcode,

static int dig_mode_start(struct gameport *gameport, u32 *packet)
{
int i, seq_len = sizeof(init_seq)/sizeof(int);
int i;
int flags, tries = 0, bads = 0;

for (i = 0; i < seq_len; i++) { /* Send magic sequence */
for (i = 0; i < ARRAY_SIZE(init_seq); i++) { /* Send magic sequence */
if (init_seq[i])
gameport_trigger(gameport);
udelay(GRIP_INIT_DELAY);
Expand Down

0 comments on commit 5ec1f7f

Please sign in to comment.