You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -98,15 +98,15 @@
|
||||
#define XTYPE_XBOX360W 2
|
||||
#define XTYPE_UNKNOWN 3
|
||||
|
||||
static int dpad_to_buttons;
|
||||
static bool dpad_to_buttons;
|
||||
module_param(dpad_to_buttons, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(dpad_to_buttons, "Map D-PAD to buttons rather than axes for unknown pads");
|
||||
|
||||
static int triggers_to_buttons;
|
||||
static bool triggers_to_buttons;
|
||||
module_param(triggers_to_buttons, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(triggers_to_buttons, "Map triggers to buttons rather than axes for unknown pads");
|
||||
|
||||
static int sticks_to_null;
|
||||
static bool sticks_to_null;
|
||||
module_param(sticks_to_null, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(sticks_to_null, "Do not map sticks at all for unknown pads");
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ MODULE_DESCRIPTION("Wistron laptop button driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_VERSION("0.3");
|
||||
|
||||
static int force; /* = 0; */
|
||||
static bool force; /* = 0; */
|
||||
module_param(force, bool, 0);
|
||||
MODULE_PARM_DESC(force, "Load even if computer is not in database");
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ static unsigned int psmouse_rate = 100;
|
||||
module_param_named(rate, psmouse_rate, uint, 0644);
|
||||
MODULE_PARM_DESC(rate, "Report rate, in reports per second.");
|
||||
|
||||
static unsigned int psmouse_smartscroll = 1;
|
||||
static bool psmouse_smartscroll = 1;
|
||||
module_param_named(smartscroll, psmouse_smartscroll, bool, 0644);
|
||||
MODULE_PARM_DESC(smartscroll, "Logitech Smartscroll autorepeat, 1 = enabled (default), 0 = disabled.");
|
||||
|
||||
|
||||
@@ -185,17 +185,17 @@
|
||||
#define NO_DATA_SLEEP_MSECS (MSEC_PER_SEC / 4)
|
||||
|
||||
/* Control touchpad's No Deceleration option */
|
||||
static int no_decel = 1;
|
||||
static bool no_decel = 1;
|
||||
module_param(no_decel, bool, 0644);
|
||||
MODULE_PARM_DESC(no_decel, "No Deceleration. Default = 1 (on)");
|
||||
|
||||
/* Control touchpad's Reduced Reporting option */
|
||||
static int reduce_report;
|
||||
static bool reduce_report;
|
||||
module_param(reduce_report, bool, 0644);
|
||||
MODULE_PARM_DESC(reduce_report, "Reduced Reporting. Default = 0 (off)");
|
||||
|
||||
/* Control touchpad's No Filter option */
|
||||
static int no_filter;
|
||||
static bool no_filter;
|
||||
module_param(no_filter, bool, 0644);
|
||||
MODULE_PARM_DESC(no_filter, "No Filter. Default = 0 (off)");
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ EXPORT_SYMBOL(__hp_sdc_enqueue_transaction);
|
||||
EXPORT_SYMBOL(hp_sdc_enqueue_transaction);
|
||||
EXPORT_SYMBOL(hp_sdc_dequeue_transaction);
|
||||
|
||||
static unsigned int hp_sdc_disabled;
|
||||
static bool hp_sdc_disabled;
|
||||
module_param_named(no_hpsdc, hp_sdc_disabled, bool, 0);
|
||||
MODULE_PARM_DESC(no_hpsdc, "Do not enable HP SDC driver.");
|
||||
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
#include <linux/input/eeti_ts.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
static int flip_x;
|
||||
static bool flip_x;
|
||||
module_param(flip_x, bool, 0644);
|
||||
MODULE_PARM_DESC(flip_x, "flip x coordinate");
|
||||
|
||||
static int flip_y;
|
||||
static bool flip_y;
|
||||
module_param(flip_y, bool, 0644);
|
||||
MODULE_PARM_DESC(flip_y, "flip y coordinate");
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ MODULE_LICENSE("GPL");
|
||||
#define X_AXIS_MAX 2040
|
||||
#define Y_AXIS_MAX 2040
|
||||
|
||||
static int invert_x;
|
||||
static bool invert_x;
|
||||
module_param(invert_x, bool, 0644);
|
||||
MODULE_PARM_DESC(invert_x, "If set, X axis is inverted");
|
||||
static int invert_y;
|
||||
static bool invert_y;
|
||||
module_param(invert_y, bool, 0644);
|
||||
MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted");
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define UCB1400_TS_POLL_PERIOD 10 /* ms */
|
||||
|
||||
static int adcsync;
|
||||
static bool adcsync;
|
||||
static int ts_delay = 55; /* us */
|
||||
static int ts_delay_pressure; /* us */
|
||||
|
||||
|
||||
@@ -60,11 +60,11 @@
|
||||
#define DRIVER_AUTHOR "Daniel Ritz <daniel.ritz@gmx.ch>"
|
||||
#define DRIVER_DESC "USB Touchscreen Driver"
|
||||
|
||||
static int swap_xy;
|
||||
static bool swap_xy;
|
||||
module_param(swap_xy, bool, 0644);
|
||||
MODULE_PARM_DESC(swap_xy, "If set X and Y axes are swapped.");
|
||||
|
||||
static int hwcalib_xy;
|
||||
static bool hwcalib_xy;
|
||||
module_param(hwcalib_xy, bool, 0644);
|
||||
MODULE_PARM_DESC(hwcalib_xy, "If set hw-calibrated X/Y are used if available");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user