diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-03 08:52:51 +0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-03 08:52:51 +0400 |
commit | 78167236e23bb3c80d2b35b693e578a6e56b1171 (patch) | |
tree | 2287a478c80f5eaa79738d4b541bd5a0ddd42de5 /drivers/input/joystick/iforce | |
parent | dec3eb01c2409ca8276c1152c167add66a37d1ba (diff) | |
download | linux-78167236e23bb3c80d2b35b693e578a6e56b1171.tar.xz |
Input: drivers/joystick - fix various sparse warnings
Fix various issues pointed by sparse:
- module_param_array_named() takes unsigned int as number
of parameters argument
- shadowing of global variables is not healthy. I think there was
once a bug in db9 caused by it.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/iforce')
-rw-r--r-- | drivers/input/joystick/iforce/iforce.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/iforce/iforce.h b/drivers/input/joystick/iforce/iforce.h index dadcf4fb92ae..40a853ac21c7 100644 --- a/drivers/input/joystick/iforce/iforce.h +++ b/drivers/input/joystick/iforce/iforce.h @@ -124,7 +124,7 @@ struct iforce { /* Buffer used for asynchronous sending of bytes to the device */ struct circ_buf xmit; unsigned char xmit_data[XMIT_SIZE]; - long xmit_flags[1]; + unsigned long xmit_flags[1]; /* Force Feedback */ wait_queue_head_t wait; |