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:
Родитель
476bc0015b
Коммит
90ab5ee941
|
@ -44,7 +44,7 @@ MODULE_LICENSE("GPL");
|
|||
*/
|
||||
|
||||
/* Emit various sounds */
|
||||
static int sound;
|
||||
static bool sound;
|
||||
module_param(sound, bool, 0);
|
||||
MODULE_PARM_DESC(sound, "emit sounds");
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
|
|||
/*
|
||||
* Optionally enable output from the AML Debug Object.
|
||||
*/
|
||||
u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
|
||||
bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
|
||||
|
||||
/*
|
||||
* Optionally copy the entire DSDT to local memory (instead of simply
|
||||
|
|
|
@ -118,7 +118,7 @@ struct ghes_estatus_cache {
|
|||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
int ghes_disable;
|
||||
bool ghes_disable;
|
||||
module_param_named(disable, ghes_disable, bool, 0);
|
||||
|
||||
static int ghes_panic_timeout __read_mostly = 30;
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
#define HEST_PFX "HEST: "
|
||||
|
||||
int hest_disable;
|
||||
bool hest_disable;
|
||||
EXPORT_SYMBOL_GPL(hest_disable);
|
||||
|
||||
/* HEST table parsing */
|
||||
|
|
|
@ -43,7 +43,7 @@ MODULE_AUTHOR("Kristen Carlson Accardi");
|
|||
MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int immediate_undock = 1;
|
||||
static bool immediate_undock = 1;
|
||||
module_param(immediate_undock, bool, 0644);
|
||||
MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to "
|
||||
"undock immediately when the undock button is pressed, 0 will cause"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <acpi/acpi_drivers.h>
|
||||
#include <linux/dmi.h>
|
||||
|
||||
static int debug;
|
||||
static bool debug;
|
||||
static int check_sta_before_sun;
|
||||
|
||||
#define DRIVER_VERSION "0.1"
|
||||
|
|
|
@ -69,21 +69,21 @@ MODULE_AUTHOR("Bruno Ducrot");
|
|||
MODULE_DESCRIPTION("ACPI Video Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int brightness_switch_enabled = 1;
|
||||
static bool brightness_switch_enabled = 1;
|
||||
module_param(brightness_switch_enabled, bool, 0644);
|
||||
|
||||
/*
|
||||
* By default, we don't allow duplicate ACPI video bus devices
|
||||
* under the same VGA controller
|
||||
*/
|
||||
static int allow_duplicates;
|
||||
static bool allow_duplicates;
|
||||
module_param(allow_duplicates, bool, 0644);
|
||||
|
||||
/*
|
||||
* Some BIOSes claim they use minimum backlight at boot,
|
||||
* and this may bring dimming screen after boot
|
||||
*/
|
||||
static int use_bios_initial_backlight = 1;
|
||||
static bool use_bios_initial_backlight = 1;
|
||||
module_param(use_bios_initial_backlight, bool, 0644);
|
||||
|
||||
static int register_count = 0;
|
||||
|
|
|
@ -599,9 +599,9 @@ MODULE_LICENSE("GPL");
|
|||
MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
static int adma_enabled;
|
||||
static int swncq_enabled = 1;
|
||||
static int msi_enabled;
|
||||
static bool adma_enabled;
|
||||
static bool swncq_enabled = 1;
|
||||
static bool msi_enabled;
|
||||
|
||||
static void nv_adma_register_mode(struct ata_port *ap)
|
||||
{
|
||||
|
|
|
@ -417,7 +417,7 @@ static struct ata_port_operations sil24_ops = {
|
|||
#endif
|
||||
};
|
||||
|
||||
static int sata_sil24_msi; /* Disable MSI */
|
||||
static bool sata_sil24_msi; /* Disable MSI */
|
||||
module_param_named(msi, sata_sil24_msi, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(msi, "Enable MSI (Default: false)");
|
||||
|
||||
|
|
|
@ -112,12 +112,12 @@ static u8 read_prom_byte(struct he_dev *he_dev, int addr);
|
|||
/* globals */
|
||||
|
||||
static struct he_dev *he_devs;
|
||||
static int disable64;
|
||||
static bool disable64;
|
||||
static short nvpibits = -1;
|
||||
static short nvcibits = -1;
|
||||
static short rx_skb_reserve = 16;
|
||||
static int irq_coalesce = 1;
|
||||
static int sdh = 0;
|
||||
static bool irq_coalesce = 1;
|
||||
static bool sdh = 0;
|
||||
|
||||
/* Read from EEPROM = 0000 0011b */
|
||||
static unsigned int readtab[] = {
|
||||
|
|
|
@ -59,8 +59,8 @@
|
|||
|
||||
/* module parameter, defined in drbd_main.c */
|
||||
extern unsigned int minor_count;
|
||||
extern int disable_sendpage;
|
||||
extern int allow_oos;
|
||||
extern bool disable_sendpage;
|
||||
extern bool allow_oos;
|
||||
extern unsigned int cn_idx;
|
||||
|
||||
#ifdef CONFIG_DRBD_FAULT_INJECTION
|
||||
|
|
|
@ -117,8 +117,8 @@ module_param(fault_devs, int, 0644);
|
|||
|
||||
/* module parameter, defined */
|
||||
unsigned int minor_count = DRBD_MINOR_COUNT_DEF;
|
||||
int disable_sendpage;
|
||||
int allow_oos;
|
||||
bool disable_sendpage;
|
||||
bool allow_oos;
|
||||
unsigned int cn_idx = CN_IDX_DRBD;
|
||||
int proc_details; /* Detail level in proc drbd*/
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
*/
|
||||
|
||||
|
||||
/* PARAMETERS */
|
||||
static int verbose; /* set this to 1 to see debugging messages and whatnot */
|
||||
|
||||
#define BACKPACK_VERSION "2.0.2"
|
||||
|
||||
#include <linux/module.h>
|
||||
|
@ -36,6 +33,8 @@ static int verbose; /* set this to 1 to see debugging messages and whatnot */
|
|||
#include "ppc6lnx.c"
|
||||
#include "paride.h"
|
||||
|
||||
/* PARAMETERS */
|
||||
static bool verbose; /* set this to 1 to see debugging messages and whatnot */
|
||||
|
||||
|
||||
#define PPCSTRUCT(pi) ((Interface *)(pi->private))
|
||||
|
|
|
@ -124,8 +124,9 @@
|
|||
by default.
|
||||
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PD_MAJOR;
|
||||
static char *name = PD_NAME;
|
||||
static int cluster = 64;
|
||||
|
|
|
@ -118,13 +118,15 @@
|
|||
#define PF_NAME "pf"
|
||||
#define PF_UNITS 4
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is off
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PF_MAJOR;
|
||||
static char *name = PF_NAME;
|
||||
static int cluster = 64;
|
||||
|
|
|
@ -130,13 +130,14 @@
|
|||
#define PI_PG 4
|
||||
#endif
|
||||
|
||||
#include <linux/types.h>
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is 0
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PG_MAJOR;
|
||||
static char *name = PG_NAME;
|
||||
static int disable = 0;
|
||||
|
|
|
@ -109,13 +109,15 @@
|
|||
#define PT_NAME "pt"
|
||||
#define PT_UNITS 4
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is on
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PT_MAJOR;
|
||||
static char *name = PT_NAME;
|
||||
static int disable = 0;
|
||||
|
|
|
@ -148,7 +148,7 @@ static volatile int xdc_busy;
|
|||
static struct timer_list xd_watchdog_int;
|
||||
|
||||
static volatile u_char xd_error;
|
||||
static int nodma = XD_DONT_USE_DMA;
|
||||
static bool nodma = XD_DONT_USE_DMA;
|
||||
|
||||
static struct request_queue *xd_queue;
|
||||
|
||||
|
|
|
@ -37,13 +37,13 @@
|
|||
|
||||
#define VERSION "0.6"
|
||||
|
||||
static int ignore_dga;
|
||||
static int ignore_csr;
|
||||
static int ignore_sniffer;
|
||||
static int disable_scofix;
|
||||
static int force_scofix;
|
||||
static bool ignore_dga;
|
||||
static bool ignore_csr;
|
||||
static bool ignore_sniffer;
|
||||
static bool disable_scofix;
|
||||
static bool force_scofix;
|
||||
|
||||
static int reset = 1;
|
||||
static bool reset = 1;
|
||||
|
||||
static struct usb_driver btusb_driver;
|
||||
|
||||
|
|
|
@ -49,8 +49,8 @@
|
|||
|
||||
#define VERSION "0.3"
|
||||
|
||||
static int txcrc = 1;
|
||||
static int hciextn = 1;
|
||||
static bool txcrc = 1;
|
||||
static bool hciextn = 1;
|
||||
|
||||
#define BCSP_TXWINSIZE 4
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
#define VERSION "2.2"
|
||||
|
||||
static int reset = 0;
|
||||
static bool reset = 0;
|
||||
|
||||
static struct hci_uart_proto *hup[HCI_UART_MAX_PROTO];
|
||||
|
||||
|
|
|
@ -285,17 +285,17 @@
|
|||
#include <asm/uaccess.h>
|
||||
|
||||
/* used to tell the module to turn on full debugging messages */
|
||||
static int debug;
|
||||
static bool debug;
|
||||
/* used to keep tray locked at all times */
|
||||
static int keeplocked;
|
||||
/* default compatibility mode */
|
||||
static int autoclose=1;
|
||||
static int autoeject;
|
||||
static int lockdoor = 1;
|
||||
static bool autoclose=1;
|
||||
static bool autoeject;
|
||||
static bool lockdoor = 1;
|
||||
/* will we ever get to use this... sigh. */
|
||||
static int check_media_type;
|
||||
static bool check_media_type;
|
||||
/* automatically restart mrw format */
|
||||
static int mrw_format_restart = 1;
|
||||
static bool mrw_format_restart = 1;
|
||||
module_param(debug, bool, 0);
|
||||
module_param(autoclose, bool, 0);
|
||||
module_param(autoeject, bool, 0);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#define ULI_X86_64_ENU_SCR_REG 0x54
|
||||
|
||||
static struct resource *aperture_resource;
|
||||
static int __initdata agp_try_unsupported = 1;
|
||||
static bool __initdata agp_try_unsupported = 1;
|
||||
static int agp_bridges_found;
|
||||
|
||||
static void amd64_tlbflush(struct agp_memory *temp)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define PCI_DEVICE_ID_SI_662 0x0662
|
||||
#define PCI_DEVICE_ID_SI_671 0x0671
|
||||
|
||||
static int __devinitdata agp_sis_force_delay = 0;
|
||||
static bool __devinitdata agp_sis_force_delay = 0;
|
||||
static int __devinitdata agp_sis_agp_spec = -1;
|
||||
|
||||
static int sis_fetch_size(void)
|
||||
|
|
|
@ -69,19 +69,19 @@ MODULE_AUTHOR("Massimo Dal Zotto (dz@debian.org)");
|
|||
MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int force;
|
||||
static bool force;
|
||||
module_param(force, bool, 0);
|
||||
MODULE_PARM_DESC(force, "Force loading without checking for supported models");
|
||||
|
||||
static int ignore_dmi;
|
||||
static bool ignore_dmi;
|
||||
module_param(ignore_dmi, bool, 0);
|
||||
MODULE_PARM_DESC(ignore_dmi, "Continue probing hardware even if DMI data does not match");
|
||||
|
||||
static int restricted;
|
||||
static bool restricted;
|
||||
module_param(restricted, bool, 0);
|
||||
MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set");
|
||||
|
||||
static int power_status;
|
||||
static bool power_status;
|
||||
module_param(power_status, bool, 0600);
|
||||
MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k");
|
||||
|
||||
|
|
|
@ -1227,7 +1227,7 @@ static int smi_num; /* Used to sequence the SMIs */
|
|||
#define DEFAULT_REGSPACING 1
|
||||
#define DEFAULT_REGSIZE 1
|
||||
|
||||
static int si_trydefaults = 1;
|
||||
static bool si_trydefaults = 1;
|
||||
static char *si_type[SI_MAX_PARMS];
|
||||
#define MAX_SI_TYPE_STR 30
|
||||
static char si_type_str[MAX_SI_TYPE_STR];
|
||||
|
|
|
@ -829,7 +829,7 @@ static struct console lpcons = {
|
|||
|
||||
static int parport_nr[LP_NO] = { [0 ... LP_NO-1] = LP_PARPORT_UNSPEC };
|
||||
static char *parport[LP_NO];
|
||||
static int reset;
|
||||
static bool reset;
|
||||
|
||||
module_param_array(parport, charp, NULL, 0);
|
||||
module_param(reset, bool, 0);
|
||||
|
|
|
@ -51,7 +51,7 @@ static int write_block(unsigned long p, const char __user *buf, int count);
|
|||
#define KFLASH_ID 0x89A6 //Intel flash
|
||||
#define KFLASH_ID4 0xB0D4 //Intel flash 4Meg
|
||||
|
||||
static int flashdebug; //if set - we will display progress msgs
|
||||
static bool flashdebug; //if set - we will display progress msgs
|
||||
|
||||
static int gbWriteEnable;
|
||||
static int gbWriteBase64Enable;
|
||||
|
|
|
@ -439,7 +439,7 @@ static int mgslpc_device_count = 0;
|
|||
* .text section address and breakpoint on module load.
|
||||
* This is useful for use with gdb and add-symbol-file command.
|
||||
*/
|
||||
static int break_on_load=0;
|
||||
static bool break_on_load=0;
|
||||
|
||||
/*
|
||||
* Driver major number, defaults to zero to get auto
|
||||
|
|
|
@ -387,7 +387,7 @@ static DECLARE_WAIT_QUEUE_HEAD(random_write_wait);
|
|||
static struct fasync_struct *fasync;
|
||||
|
||||
#if 0
|
||||
static int debug;
|
||||
static bool debug;
|
||||
module_param(debug, bool, 0644);
|
||||
#define DEBUG_ENT(fmt, arg...) do { \
|
||||
if (debug) \
|
||||
|
|
|
@ -255,7 +255,7 @@ out:
|
|||
return size;
|
||||
}
|
||||
|
||||
static int itpm;
|
||||
static bool itpm;
|
||||
module_param(itpm, bool, 0444);
|
||||
MODULE_PARM_DESC(itpm, "Force iTPM workarounds (found on some Lenovo laptops)");
|
||||
|
||||
|
@ -500,7 +500,7 @@ static irqreturn_t tis_int_handler(int dummy, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int interrupts = 1;
|
||||
static bool interrupts = 1;
|
||||
module_param(interrupts, bool, 0444);
|
||||
MODULE_PARM_DESC(interrupts, "Enable interrupts");
|
||||
|
||||
|
@ -828,7 +828,7 @@ static struct platform_driver tis_drv = {
|
|||
|
||||
static struct platform_device *pdev;
|
||||
|
||||
static int force;
|
||||
static bool force;
|
||||
module_param(force, bool, 0444);
|
||||
MODULE_PARM_DESC(force, "Force device probe rather than using ACPI entry");
|
||||
static int __init init_tis(void)
|
||||
|
|
|
@ -131,7 +131,7 @@ struct r82600_error_info {
|
|||
u32 eapr;
|
||||
};
|
||||
|
||||
static unsigned int disable_hardware_scrub;
|
||||
static bool disable_hardware_scrub;
|
||||
|
||||
static struct edac_pci_ctl_info *r82600_pci;
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
*
|
||||
* Concurrent logins are useful together with cluster filesystems.
|
||||
*/
|
||||
static int sbp2_param_exclusive_login = 1;
|
||||
static bool sbp2_param_exclusive_login = 1;
|
||||
module_param_named(exclusive_login, sbp2_param_exclusive_login, bool, 0644);
|
||||
MODULE_PARM_DESC(exclusive_login, "Exclusive login to sbp2 device "
|
||||
"(default = Y, use N for concurrent initiators)");
|
||||
|
|
|
@ -90,7 +90,7 @@ static const char longname[] = "Prodikeys PC-MIDI Keyboard";
|
|||
|
||||
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
|
||||
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
|
||||
static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
|
||||
static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
|
||||
|
||||
module_param_array(index, int, NULL, 0444);
|
||||
module_param_array(id, charp, NULL, 0444);
|
||||
|
|
|
@ -145,7 +145,7 @@ static const u8 abituguru_pwm_max[5] = { 0, 255, 255, 75, 75 };
|
|||
|
||||
|
||||
/* Insmod parameters */
|
||||
static int force;
|
||||
static bool force;
|
||||
module_param(force, bool, 0);
|
||||
MODULE_PARM_DESC(force, "Set to one to force detection.");
|
||||
static int bank1_types[ABIT_UGURU_MAX_BANK1_SENSORS] = { -1, -1, -1, -1, -1,
|
||||
|
|
|
@ -603,11 +603,11 @@ static const struct abituguru3_motherboard_info abituguru3_motherboards[] = {
|
|||
|
||||
|
||||
/* Insmod parameters */
|
||||
static int force;
|
||||
static bool force;
|
||||
module_param(force, bool, 0);
|
||||
MODULE_PARM_DESC(force, "Set to one to force detection.");
|
||||
/* Default verbose is 1, since this driver is still in the testing phase */
|
||||
static int verbose = 1;
|
||||
static bool verbose = 1;
|
||||
module_param(verbose, bool, 0644);
|
||||
MODULE_PARM_DESC(verbose, "Enable/disable verbose error reporting");
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ ACPI_MODULE_NAME(ACPI_POWER_METER_NAME);
|
|||
#define POWER_ALARM_NAME "power1_alarm"
|
||||
|
||||
static int cap_in_hardware;
|
||||
static int force_cap_on;
|
||||
static bool force_cap_on;
|
||||
|
||||
static int can_cap_in_hardware(void)
|
||||
{
|
||||
|
|
|
@ -103,7 +103,7 @@ static int adm1021_remove(struct i2c_client *client);
|
|||
static struct adm1021_data *adm1021_update_device(struct device *dev);
|
||||
|
||||
/* (amalysh) read only mode, otherwise any limit's writing confuse BIOS */
|
||||
static int read_only;
|
||||
static bool read_only;
|
||||
|
||||
|
||||
static const struct i2c_device_id adm1021_id[] = {
|
||||
|
|
|
@ -48,8 +48,8 @@ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
|
|||
I2C_CLIENT_END };
|
||||
|
||||
/* Module parameters */
|
||||
static int se_input = 1; /* Default is SE, 0 == diff */
|
||||
static int int_vref = 1; /* Default is internal ref ON */
|
||||
static bool se_input = 1; /* Default is SE, 0 == diff */
|
||||
static bool int_vref = 1; /* Default is internal ref ON */
|
||||
static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */
|
||||
module_param(se_input, bool, S_IRUGO);
|
||||
module_param(int_vref, bool, S_IRUGO);
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
static struct platform_device *pdev;
|
||||
|
||||
/* Module load parameters */
|
||||
static int force_start;
|
||||
static bool force_start;
|
||||
module_param(force_start, bool, 0);
|
||||
MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs");
|
||||
|
||||
|
@ -53,7 +53,7 @@ static unsigned short force_id;
|
|||
module_param(force_id, ushort, 0);
|
||||
MODULE_PARM_DESC(force_id, "Override the detected device ID");
|
||||
|
||||
static int probe_all_addr;
|
||||
static bool probe_all_addr;
|
||||
module_param(probe_all_addr, bool, 0);
|
||||
MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC "
|
||||
"addresses");
|
||||
|
|
|
@ -146,10 +146,10 @@ static inline void superio_exit(void)
|
|||
#define IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */
|
||||
|
||||
/* Update battery voltage after every reading if true */
|
||||
static int update_vbat;
|
||||
static bool update_vbat;
|
||||
|
||||
/* Not all BIOSes properly configure the PWM registers */
|
||||
static int fix_pwm_polarity;
|
||||
static bool fix_pwm_polarity;
|
||||
|
||||
/* Many IT87 constants specified below */
|
||||
|
||||
|
|
|
@ -151,12 +151,12 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
|
|||
|
||||
/* Insmod parameters */
|
||||
|
||||
static int disable_block;
|
||||
static bool disable_block;
|
||||
module_param(disable_block, bool, 0);
|
||||
MODULE_PARM_DESC(disable_block,
|
||||
"Set to non-zero to disable SMBus block data transactions.");
|
||||
|
||||
static int init;
|
||||
static bool init;
|
||||
module_param(init, bool, 0);
|
||||
MODULE_PARM_DESC(init, "Set to non-zero to force chip initialization.");
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ static unsigned short max1668_addr_list[] = {
|
|||
#define DEV_ID_MAX1989 0xb
|
||||
|
||||
/* read only mode module parameter */
|
||||
static int read_only;
|
||||
static bool read_only;
|
||||
module_param(read_only, bool, 0);
|
||||
MODULE_PARM_DESC(read_only, "Don't set any values, read only mode");
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ module_param(force_i2c, byte, 0);
|
|||
MODULE_PARM_DESC(force_i2c,
|
||||
"Initialize the i2c address of the sensors");
|
||||
|
||||
static int init = 1;
|
||||
static bool init = 1;
|
||||
module_param(init, bool, 0);
|
||||
MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization");
|
||||
|
||||
|
|
|
@ -67,11 +67,11 @@ module_param_array(force_subclients, short, NULL, 0);
|
|||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
"{bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
|
||||
static int reset;
|
||||
static bool reset;
|
||||
module_param(reset, bool, 0);
|
||||
MODULE_PARM_DESC(reset, "Set to one to reset chip on load");
|
||||
|
||||
static int init = 1;
|
||||
static bool init = 1;
|
||||
module_param(init, bool, 0);
|
||||
MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization");
|
||||
|
||||
|
|
|
@ -58,11 +58,11 @@ module_param_array(force_subclients, short, NULL, 0);
|
|||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
"{bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
|
||||
static int reset;
|
||||
static bool reset;
|
||||
module_param(reset, bool, 0);
|
||||
MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset");
|
||||
|
||||
static int init;
|
||||
static bool init;
|
||||
module_param(init, bool, 0);
|
||||
MODULE_PARM_DESC(init, "Set to one to force extra software initialization");
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ module_param_array(force_subclients, short, NULL, 0);
|
|||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
"{bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
|
||||
static int init;
|
||||
static bool init;
|
||||
module_param(init, bool, 0);
|
||||
MODULE_PARM_DESC(init, "Set to one to force chip initialization");
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ module_param_array(force_subclients, short, NULL, 0);
|
|||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
"{bus, clientaddr, subclientaddr1, subclientaddr2}");
|
||||
|
||||
static int reset;
|
||||
static bool reset;
|
||||
module_param(reset, bool, 0);
|
||||
MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended");
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ static const unsigned short normal_i2c[] = {
|
|||
};
|
||||
|
||||
|
||||
static int reset;
|
||||
static bool reset;
|
||||
module_param(reset, bool, 0);
|
||||
MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended");
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ static const unsigned short normal_i2c[] = { 0x2e, 0x2f, I2C_CLIENT_END };
|
|||
|
||||
/* Insmod parameters */
|
||||
|
||||
static int reset;
|
||||
static bool reset;
|
||||
module_param(reset, bool, 0);
|
||||
MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended");
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ struct highlander_i2c_dev {
|
|||
size_t buf_len;
|
||||
};
|
||||
|
||||
static int iic_force_poll, iic_force_normal;
|
||||
static bool iic_force_poll, iic_force_normal;
|
||||
static int iic_timeout = 1000, iic_read_delay;
|
||||
|
||||
static inline void highlander_i2c_irq_enable(struct highlander_i2c_dev *dev)
|
||||
|
|
|
@ -51,11 +51,11 @@
|
|||
MODULE_DESCRIPTION("IBM IIC driver v" DRIVER_VERSION);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int iic_force_poll;
|
||||
static bool iic_force_poll;
|
||||
module_param(iic_force_poll, bool, 0);
|
||||
MODULE_PARM_DESC(iic_force_poll, "Force polling mode");
|
||||
|
||||
static int iic_force_fast;
|
||||
static bool iic_force_fast;
|
||||
module_param(iic_force_fast, bool, 0);
|
||||
MODULE_PARM_DESC(iic_force_fast, "Force fast mode (400 kHz)");
|
||||
|
||||
|
|
|
@ -93,8 +93,8 @@
|
|||
static struct pci_driver sis630_driver;
|
||||
|
||||
/* insmod parameters */
|
||||
static int high_clock;
|
||||
static int force;
|
||||
static bool high_clock;
|
||||
static bool force;
|
||||
module_param(high_clock, bool, 0);
|
||||
MODULE_PARM_DESC(high_clock, "Set Host Master Clock to 56KHz (default 14KHz).");
|
||||
module_param(force, bool, 0);
|
||||
|
|
|
@ -91,7 +91,7 @@ static unsigned short SMBHSTCFG = 0xD2;
|
|||
|
||||
/* If force is set to anything different from 0, we forcibly enable the
|
||||
VT596. DANGEROUS! */
|
||||
static int force;
|
||||
static bool force;
|
||||
module_param(force, bool, 0);
|
||||
MODULE_PARM_DESC(force, "Forcibly enable the SMBus. DANGEROUS!");
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ static int __init ali14xx_probe(void)
|
|||
return ide_legacy_device_add(&ali14xx_port_info, 0);
|
||||
}
|
||||
|
||||
static int probe_ali14xx;
|
||||
static bool probe_ali14xx;
|
||||
|
||||
module_param_named(probe, probe_ali14xx, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets");
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
|
||||
#define DRV_NAME "cmd640"
|
||||
|
||||
static int cmd640_vlb;
|
||||
static bool cmd640_vlb;
|
||||
|
||||
/*
|
||||
* CMD640 specific registers definition.
|
||||
|
|
|
@ -130,7 +130,7 @@ static int __init dtc2278_probe(void)
|
|||
return ide_legacy_device_add(&dtc2278_port_info, 0);
|
||||
}
|
||||
|
||||
static int probe_dtc2278;
|
||||
static bool probe_dtc2278;
|
||||
|
||||
module_param_named(probe, probe_dtc2278, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets");
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
GAYLE_NUM_HWIFS-1)
|
||||
#define GAYLE_HAS_CONTROL_REG (!ide_doubler)
|
||||
|
||||
static int ide_doubler;
|
||||
static bool ide_doubler;
|
||||
module_param_named(doubler, ide_doubler, bool, 0);
|
||||
MODULE_PARM_DESC(doubler, "enable support for IDE doublers");
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ static void __init ht6560b_init_dev(ide_drive_t *drive)
|
|||
ide_set_drivedata(drive, (void *)t);
|
||||
}
|
||||
|
||||
static int probe_ht6560b;
|
||||
static bool probe_ht6560b;
|
||||
|
||||
module_param_named(probe, probe_ht6560b, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for HT6560B chipset");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#define DRV_NAME "ide-4drives"
|
||||
|
||||
static int probe_4drives;
|
||||
static bool probe_4drives;
|
||||
|
||||
module_param_named(probe, probe_4drives, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port");
|
||||
|
|
|
@ -53,15 +53,15 @@ struct ide_acpi_hwif_link {
|
|||
#define DEBPRINT(fmt, args...) do {} while (0)
|
||||
#endif /* DEBUGGING */
|
||||
|
||||
static int ide_noacpi;
|
||||
static bool ide_noacpi;
|
||||
module_param_named(noacpi, ide_noacpi, bool, 0);
|
||||
MODULE_PARM_DESC(noacpi, "disable IDE ACPI support");
|
||||
|
||||
static int ide_acpigtf;
|
||||
static bool ide_acpigtf;
|
||||
module_param_named(acpigtf, ide_acpigtf, bool, 0);
|
||||
MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support");
|
||||
|
||||
static int ide_acpionboot;
|
||||
static bool ide_acpionboot;
|
||||
module_param_named(acpionboot, ide_acpionboot, bool, 0);
|
||||
MODULE_PARM_DESC(acpionboot, "call IDE ACPI methods on boot");
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#define DRV_NAME "ide_pci_generic"
|
||||
|
||||
static int ide_generic_all; /* Set to claim all devices */
|
||||
static bool ide_generic_all; /* Set to claim all devices */
|
||||
|
||||
module_param_named(all_generic_ide, ide_generic_all, bool, 0444);
|
||||
MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers.");
|
||||
|
|
|
@ -417,7 +417,7 @@ static int __init qd_probe(int base)
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int probe_qd65xx;
|
||||
static bool probe_qd65xx;
|
||||
|
||||
module_param_named(probe, probe_qd65xx, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for QD65xx chipsets");
|
||||
|
|
|
@ -160,7 +160,7 @@ static int __init umc8672_probe(void)
|
|||
return ide_legacy_device_add(&umc8672_port_info, 0);
|
||||
}
|
||||
|
||||
static int probe_umc8672;
|
||||
static bool probe_umc8672;
|
||||
|
||||
module_param_named(probe, probe_umc8672, bool, 0);
|
||||
MODULE_PARM_DESC(probe, "probe for UMC8672 chipset");
|
||||
|
|
|
@ -379,8 +379,8 @@ extern spinlock_t shca_list_lock;
|
|||
|
||||
extern int ehca_static_rate;
|
||||
extern int ehca_port_act_time;
|
||||
extern int ehca_use_hp_mr;
|
||||
extern int ehca_scaling_code;
|
||||
extern bool ehca_use_hp_mr;
|
||||
extern bool ehca_scaling_code;
|
||||
extern int ehca_lock_hcalls;
|
||||
extern int ehca_nr_ports;
|
||||
extern int ehca_max_cq;
|
||||
|
|
|
@ -59,16 +59,16 @@ MODULE_AUTHOR("Christoph Raisch <raisch@de.ibm.com>");
|
|||
MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver");
|
||||
MODULE_VERSION(HCAD_VERSION);
|
||||
|
||||
static int ehca_open_aqp1 = 0;
|
||||
static bool ehca_open_aqp1 = 0;
|
||||
static int ehca_hw_level = 0;
|
||||
static int ehca_poll_all_eqs = 1;
|
||||
static bool ehca_poll_all_eqs = 1;
|
||||
|
||||
int ehca_debug_level = 0;
|
||||
int ehca_nr_ports = -1;
|
||||
int ehca_use_hp_mr = 0;
|
||||
bool ehca_use_hp_mr = 0;
|
||||
int ehca_port_act_time = 30;
|
||||
int ehca_static_rate = -1;
|
||||
int ehca_scaling_code = 0;
|
||||
bool ehca_scaling_code = 0;
|
||||
int ehca_lock_hcalls = -1;
|
||||
int ehca_max_cq = -1;
|
||||
int ehca_max_qp = -1;
|
||||
|
|
|
@ -96,7 +96,7 @@ unsigned int wqm_quanta = 0x10000;
|
|||
module_param(wqm_quanta, int, 0644);
|
||||
MODULE_PARM_DESC(wqm_quanta, "WQM quanta");
|
||||
|
||||
static unsigned int limit_maxrdreqsz;
|
||||
static bool limit_maxrdreqsz;
|
||||
module_param(limit_maxrdreqsz, bool, 0644);
|
||||
MODULE_PARM_DESC(limit_maxrdreqsz, "Limit max read request size to 256 Bytes");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ MODULE_DESCRIPTION("CAPI4Linux: DMA support for active AVM cards");
|
|||
MODULE_AUTHOR("Carsten Paeth");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int suppress_pollack = 0;
|
||||
static bool suppress_pollack = 0;
|
||||
module_param(suppress_pollack, bool, 0);
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
|
|
@ -40,7 +40,7 @@ static char *revision = "$Revision: 1.1.2.2 $";
|
|||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
||||
static int suppress_pollack;
|
||||
static bool suppress_pollack;
|
||||
|
||||
static struct pci_device_id c4_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_C4, 0, 0, (unsigned long)4 },
|
||||
|
|
|
@ -30,7 +30,7 @@ static const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCo
|
|||
static unsigned int io[] = {0,0,0,0};
|
||||
static unsigned char irq[] = {0,0,0,0};
|
||||
static unsigned long ram[] = {0,0,0,0};
|
||||
static int do_reset = 0;
|
||||
static bool do_reset = 0;
|
||||
|
||||
module_param_array(io, int, NULL, 0);
|
||||
module_param_array(irq, int, NULL, 0);
|
||||
|
|
|
@ -18,7 +18,7 @@ MODULE_AUTHOR("Márton Németh <nm127@freemail.hu>");
|
|||
MODULE_DESCRIPTION("Clevo mail LED driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static unsigned int __initdata nodetect;
|
||||
static bool __initdata nodetect;
|
||||
module_param_named(nodetect, nodetect, bool, 0);
|
||||
MODULE_PARM_DESC(nodetect, "Skip DMI hardware detection");
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ static int __init ss4200_led_dmi_callback(const struct dmi_system_id *id)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static unsigned int __initdata nodetect;
|
||||
static bool __initdata nodetect;
|
||||
module_param_named(nodetect, nodetect, bool, 0);
|
||||
MODULE_PARM_DESC(nodetect, "Skip DMI-based hardware detection");
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
/* There is only one motion sensor per machine */
|
||||
struct ams ams_info;
|
||||
|
||||
static unsigned int verbose;
|
||||
static bool verbose;
|
||||
module_param(verbose, bool, 0644);
|
||||
MODULE_PARM_DESC(verbose, "Show free falls and shocks in kernel output");
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
|
||||
#include "ams.h"
|
||||
|
||||
static unsigned int joystick;
|
||||
static bool joystick;
|
||||
module_param(joystick, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(joystick, "Enable the input class device on module load");
|
||||
|
||||
static unsigned int invert;
|
||||
static bool invert;
|
||||
module_param(invert, bool, S_IWUSR | S_IRUGO);
|
||||
MODULE_PARM_DESC(invert, "Invert input data on X and Y axis");
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ static const char *sensor_location[3];
|
|||
|
||||
static int limit_adjust;
|
||||
static int fan_speed = -1;
|
||||
static int verbose;
|
||||
static bool verbose;
|
||||
|
||||
MODULE_AUTHOR("Colin Leroy <colin@colino.net>");
|
||||
MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
|
||||
|
|
|
@ -30,7 +30,7 @@ MODULE_PARM_DESC(debug,
|
|||
"set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."
|
||||
DVB_USB_DEBUG_STATUS);
|
||||
/* enable obnoxious led */
|
||||
int dvb_usb_af9005_led = 1;
|
||||
bool dvb_usb_af9005_led = 1;
|
||||
module_param_named(led, dvb_usb_af9005_led, bool, 0644);
|
||||
MODULE_PARM_DESC(led, "enable led (default: 1).");
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ extern int dvb_usb_af9005_debug;
|
|||
#define deb_i2c(args...) dprintk(dvb_usb_af9005_debug,0x10,args)
|
||||
#define deb_fw(args...) dprintk(dvb_usb_af9005_debug,0x20,args)
|
||||
|
||||
extern int dvb_usb_af9005_led;
|
||||
extern bool dvb_usb_af9005_led;
|
||||
|
||||
/* firmware */
|
||||
#define FW_BULKOUT_SIZE 250
|
||||
|
|
|
@ -47,11 +47,11 @@ MODULE_VERSION("0.0.4");
|
|||
#endif
|
||||
|
||||
static int io = CONFIG_RADIO_GEMTEK_PORT;
|
||||
static int probe = CONFIG_RADIO_GEMTEK_PROBE;
|
||||
static int hardmute;
|
||||
static int shutdown = 1;
|
||||
static int keepmuted = 1;
|
||||
static int initmute = 1;
|
||||
static bool probe = CONFIG_RADIO_GEMTEK_PROBE;
|
||||
static bool hardmute;
|
||||
static bool shutdown = 1;
|
||||
static bool keepmuted = 1;
|
||||
static bool initmute = 1;
|
||||
static int radio_nr = -1;
|
||||
|
||||
module_param(io, int, 0444);
|
||||
|
|
|
@ -23,7 +23,7 @@ static int radio_nr = -1;
|
|||
module_param(radio_nr, int, 0);
|
||||
MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 (autodetect)");
|
||||
|
||||
static int mono;
|
||||
static bool mono;
|
||||
module_param(mono, bool, 0);
|
||||
MODULE_PARM_DESC(mono, "Force tuner into mono mode.");
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include <media/lirc.h>
|
||||
#include <media/lirc_dev.h>
|
||||
|
||||
static int debug;
|
||||
static bool debug;
|
||||
|
||||
#define IRCTL_DEV_NAME "BaseRemoteCtl"
|
||||
#define NOPLUG -1
|
||||
|
|
|
@ -156,9 +156,9 @@
|
|||
|
||||
/* module parameters */
|
||||
#ifdef CONFIG_USB_DEBUG
|
||||
static int debug = 1;
|
||||
static bool debug = 1;
|
||||
#else
|
||||
static int debug;
|
||||
static bool debug;
|
||||
#endif
|
||||
|
||||
#define mce_dbg(dev, fmt, ...) \
|
||||
|
|
|
@ -43,9 +43,9 @@
|
|||
#define DRIVER_DESC "Streamzap Remote Control driver"
|
||||
|
||||
#ifdef CONFIG_USB_DEBUG
|
||||
static int debug = 1;
|
||||
static bool debug = 1;
|
||||
#else
|
||||
static int debug;
|
||||
static bool debug;
|
||||
#endif
|
||||
|
||||
#define USB_STREAMZAP_VENDOR_ID 0x0e9c
|
||||
|
|
|
@ -226,11 +226,11 @@ module_param(protocol, uint, 0444);
|
|||
MODULE_PARM_DESC(protocol, "IR protocol to use for the power-on command "
|
||||
"(0 = RC5, 1 = NEC, 2 = RC6A, default)");
|
||||
|
||||
static int invert; /* default = 0 */
|
||||
static bool invert; /* default = 0 */
|
||||
module_param(invert, bool, 0444);
|
||||
MODULE_PARM_DESC(invert, "Invert the signal from the IR receiver");
|
||||
|
||||
static int txandrx; /* default = 0 */
|
||||
static bool txandrx; /* default = 0 */
|
||||
module_param(txandrx, bool, 0444);
|
||||
MODULE_PARM_DESC(invert, "Allow simultaneous TX and RX");
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ struct qcam {
|
|||
|
||||
static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 };
|
||||
static int probe = 2;
|
||||
static int force_rgb;
|
||||
static bool force_rgb;
|
||||
static int video_nr = -1;
|
||||
|
||||
/* FIXME: parport=auto would never have worked, surely? --RR */
|
||||
|
|
|
@ -31,7 +31,7 @@ MODULE_DESCRIPTION("i2c device driver for cs5345 Audio ADC");
|
|||
MODULE_AUTHOR("Hans Verkuil");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int debug;
|
||||
static bool debug;
|
||||
|
||||
module_param(debug, bool, 0644);
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC");
|
|||
MODULE_AUTHOR("Martin Vaughan");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int debug;
|
||||
static bool debug;
|
||||
|
||||
module_param(debug, bool, 0644);
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ static int radio[CX18_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
|
|||
-1, -1, -1, -1, -1, -1, -1, -1 };
|
||||
static unsigned cardtype_c = 1;
|
||||
static unsigned tuner_c = 1;
|
||||
static unsigned radio_c = 1;
|
||||
static bool radio_c = 1;
|
||||
static char pal[] = "--";
|
||||
static char secam[] = "--";
|
||||
static char ntsc[] = "-";
|
||||
|
|
|
@ -102,7 +102,7 @@ struct cx25821_audio_dev {
|
|||
|
||||
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
|
||||
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
|
||||
static int enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 };
|
||||
static bool enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 };
|
||||
|
||||
module_param_array(enable, bool, NULL, 0444);
|
||||
MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled.");
|
||||
|
|
|
@ -96,7 +96,7 @@ typedef struct cx88_audio_dev snd_cx88_card_t;
|
|||
|
||||
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
|
||||
static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
|
||||
static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1};
|
||||
static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1};
|
||||
|
||||
module_param_array(enable, bool, NULL, 0444);
|
||||
MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled.");
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
/* Kernel module parameters */
|
||||
int force_sensor;
|
||||
static int dump_bridge;
|
||||
int dump_sensor;
|
||||
static bool dump_bridge;
|
||||
bool dump_sensor;
|
||||
|
||||
static const struct usb_device_id m5602_table[] = {
|
||||
{USB_DEVICE(0x0402, 0x5602)},
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
|
||||
/* Kernel module parameters */
|
||||
extern int force_sensor;
|
||||
extern int dump_sensor;
|
||||
extern bool dump_sensor;
|
||||
|
||||
int mt9m111_probe(struct sd *sd);
|
||||
int mt9m111_init(struct sd *sd);
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче