diff options
author | Andi Drebes <lists-receive@programmierforen.de> | 2007-06-15 05:33:01 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-10 06:35:18 +0200 |
commit | 5ec1f7f3e4a4896062dc6a64d38036588733bc23 (patch) | |
tree | d21faa3f2f0966c9d22b4b41fc882acd1ad142d8 | |
parent | Input: wacom - add support for the new Bamboo tablets (diff) | |
download | linux-5ec1f7f3e4a4896062dc6a64d38036588733bc23.tar.xz linux-5ec1f7f3e4a4896062dc6a64d38036588733bc23.zip |
Input: grip-mp - use ARRAY_SIZE
Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/joystick/grip_mp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/joystick/grip_mp.c b/drivers/input/joystick/grip_mp.c index 555319e6378c..4ed3a3eadf19 100644 --- a/drivers/input/joystick/grip_mp.c +++ b/drivers/input/joystick/grip_mp.c @@ -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); |