Commit 5ec1f7f3 authored by Andi Drebes's avatar Andi Drebes Committed by Dmitry Torokhov

Input: grip-mp - use ARRAY_SIZE

Signed-off-by: default avatarAndi Drebes <lists-receive@programmierforen.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 7ecfbfd3
...@@ -320,10 +320,10 @@ static int multiport_io(struct gameport* gameport, int sendflags, int sendcode, ...@@ -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) 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; 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]) if (init_seq[i])
gameport_trigger(gameport); gameport_trigger(gameport);
udelay(GRIP_INIT_DELAY); udelay(GRIP_INIT_DELAY);
......
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