diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/input/touchscreen | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/htcpen.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 7f8f538a9806..1df19bb8534a 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c | |||
@@ -35,11 +35,11 @@ | |||
35 | #include <linux/input/eeti_ts.h> | 35 | #include <linux/input/eeti_ts.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | 37 | ||
38 | static int flip_x; | 38 | static bool flip_x; |
39 | module_param(flip_x, bool, 0644); | 39 | module_param(flip_x, bool, 0644); |
40 | MODULE_PARM_DESC(flip_x, "flip x coordinate"); | 40 | MODULE_PARM_DESC(flip_x, "flip x coordinate"); |
41 | 41 | ||
42 | static int flip_y; | 42 | static bool flip_y; |
43 | module_param(flip_y, bool, 0644); | 43 | module_param(flip_y, bool, 0644); |
44 | MODULE_PARM_DESC(flip_y, "flip y coordinate"); | 44 | MODULE_PARM_DESC(flip_y, "flip y coordinate"); |
45 | 45 | ||
diff --git a/drivers/input/touchscreen/htcpen.c b/drivers/input/touchscreen/htcpen.c index 81e338623944..d13143b68b3e 100644 --- a/drivers/input/touchscreen/htcpen.c +++ b/drivers/input/touchscreen/htcpen.c | |||
@@ -40,10 +40,10 @@ MODULE_LICENSE("GPL"); | |||
40 | #define X_AXIS_MAX 2040 | 40 | #define X_AXIS_MAX 2040 |
41 | #define Y_AXIS_MAX 2040 | 41 | #define Y_AXIS_MAX 2040 |
42 | 42 | ||
43 | static int invert_x; | 43 | static bool invert_x; |
44 | module_param(invert_x, bool, 0644); | 44 | module_param(invert_x, bool, 0644); |
45 | MODULE_PARM_DESC(invert_x, "If set, X axis is inverted"); | 45 | MODULE_PARM_DESC(invert_x, "If set, X axis is inverted"); |
46 | static int invert_y; | 46 | static bool invert_y; |
47 | module_param(invert_y, bool, 0644); | 47 | module_param(invert_y, bool, 0644); |
48 | MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); | 48 | MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); |
49 | 49 | ||
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index d2b57536feea..46e83ad53f43 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #define UCB1400_TS_POLL_PERIOD 10 /* ms */ | 31 | #define UCB1400_TS_POLL_PERIOD 10 /* ms */ |
32 | 32 | ||
33 | static int adcsync; | 33 | static bool adcsync; |
34 | static int ts_delay = 55; /* us */ | 34 | static int ts_delay = 55; /* us */ |
35 | static int ts_delay_pressure; /* us */ | 35 | static int ts_delay_pressure; /* us */ |
36 | 36 | ||
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 06cef3ccc63a..3a5ebf452e81 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
@@ -60,11 +60,11 @@ | |||
60 | #define DRIVER_AUTHOR "Daniel Ritz <daniel.ritz@gmx.ch>" | 60 | #define DRIVER_AUTHOR "Daniel Ritz <daniel.ritz@gmx.ch>" |
61 | #define DRIVER_DESC "USB Touchscreen Driver" | 61 | #define DRIVER_DESC "USB Touchscreen Driver" |
62 | 62 | ||
63 | static int swap_xy; | 63 | static bool swap_xy; |
64 | module_param(swap_xy, bool, 0644); | 64 | module_param(swap_xy, bool, 0644); |
65 | MODULE_PARM_DESC(swap_xy, "If set X and Y axes are swapped."); | 65 | MODULE_PARM_DESC(swap_xy, "If set X and Y axes are swapped."); |
66 | 66 | ||
67 | static int hwcalib_xy; | 67 | static bool hwcalib_xy; |
68 | module_param(hwcalib_xy, bool, 0644); | 68 | module_param(hwcalib_xy, bool, 0644); |
69 | MODULE_PARM_DESC(hwcalib_xy, "If set hw-calibrated X/Y are used if available"); | 69 | MODULE_PARM_DESC(hwcalib_xy, "If set hw-calibrated X/Y are used if available"); |
70 | 70 | ||