summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/iforce
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-05-03 06:52:51 +0200
committerDmitry Torokhov <dtor@insightbb.com>2007-05-03 06:52:51 +0200
commit78167236e23bb3c80d2b35b693e578a6e56b1171 (patch)
tree2287a478c80f5eaa79738d4b541bd5a0ddd42de5 /drivers/input/joystick/iforce
parentInput: force feedback - make sure effect is present before playing (diff)
downloadlinux-78167236e23bb3c80d2b35b693e578a6e56b1171.tar.xz
linux-78167236e23bb3c80d2b35b693e578a6e56b1171.zip
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.h2
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;