]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
module_param: make bool parameters really bool (drivers & misc)
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 23:02:20 +0000 (09:32 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 23:02:20 +0000 (09:32 +1030)
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>
283 files changed:
drivers/accessibility/braille/braille_console.c
drivers/acpi/acpica/acglobal.h
drivers/acpi/apei/ghes.c
drivers/acpi/apei/hest.c
drivers/acpi/dock.c
drivers/acpi/pci_slot.c
drivers/acpi/video.c
drivers/ata/sata_nv.c
drivers/ata/sata_sil24.c
drivers/atm/he.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/paride/bpck6.c
drivers/block/paride/pd.c
drivers/block/paride/pf.c
drivers/block/paride/pg.c
drivers/block/paride/pt.c
drivers/block/xd.c
drivers/bluetooth/btusb.c
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_ldisc.c
drivers/cdrom/cdrom.c
drivers/char/agp/amd64-agp.c
drivers/char/agp/sis-agp.c
drivers/char/i8k.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/lp.c
drivers/char/nwflash.c
drivers/char/pcmcia/synclink_cs.c
drivers/char/random.c
drivers/char/tpm/tpm_tis.c
drivers/edac/r82600_edac.c
drivers/firewire/sbp2.c
drivers/hid/hid-prodikeys.c
drivers/hwmon/abituguru.c
drivers/hwmon/abituguru3.c
drivers/hwmon/acpi_power_meter.c
drivers/hwmon/adm1021.c
drivers/hwmon/ads7828.c
drivers/hwmon/dme1737.c
drivers/hwmon/it87.c
drivers/hwmon/lm93.c
drivers/hwmon/max1668.c
drivers/hwmon/w83627hf.c
drivers/hwmon/w83781d.c
drivers/hwmon/w83791d.c
drivers/hwmon/w83792d.c
drivers/hwmon/w83793.c
drivers/hwmon/w83795.c
drivers/hwmon/w83l786ng.c
drivers/i2c/busses/i2c-highlander.c
drivers/i2c/busses/i2c-ibm_iic.c
drivers/i2c/busses/i2c-sis630.c
drivers/i2c/busses/i2c-viapro.c
drivers/ide/ali14xx.c
drivers/ide/cmd640.c
drivers/ide/dtc2278.c
drivers/ide/gayle.c
drivers/ide/ht6560b.c
drivers/ide/ide-4drives.c
drivers/ide/ide-acpi.c
drivers/ide/ide-pci-generic.c
drivers/ide/qd65xx.c
drivers/ide/umc8672.c
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_main.c
drivers/infiniband/hw/nes/nes.c
drivers/input/joystick/xpad.c
drivers/input/misc/wistron_btns.c
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/synaptics_i2c.c
drivers/input/serio/hp_sdc.c
drivers/input/touchscreen/eeti_ts.c
drivers/input/touchscreen/htcpen.c
drivers/input/touchscreen/ucb1400_ts.c
drivers/input/touchscreen/usbtouchscreen.c
drivers/isdn/hardware/avm/b1dma.c
drivers/isdn/hardware/avm/c4.c
drivers/isdn/sc/init.c
drivers/leds/leds-clevo-mail.c
drivers/leds/leds-ss4200.c
drivers/macintosh/ams/ams-core.c
drivers/macintosh/ams/ams-input.c
drivers/macintosh/therm_adt746x.c
drivers/media/dvb/dvb-usb/af9005.c
drivers/media/dvb/dvb-usb/af9005.h
drivers/media/radio/radio-gemtek.c
drivers/media/radio/radio-miropcm20.c
drivers/media/rc/lirc_dev.c
drivers/media/rc/mceusb.c
drivers/media/rc/streamzap.c
drivers/media/rc/winbond-cir.c
drivers/media/video/c-qcam.c
drivers/media/video/cs5345.c
drivers/media/video/cs53l32a.c
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/cx25821/cx25821-alsa.c
drivers/media/video/cx88/cx88-alsa.c
drivers/media/video/gspca/m5602/m5602_core.c
drivers/media/video/gspca/m5602/m5602_mt9m111.h
drivers/media/video/gspca/m5602/m5602_ov7660.h
drivers/media/video/gspca/m5602/m5602_ov9650.h
drivers/media/video/gspca/m5602/m5602_po1030.h
drivers/media/video/gspca/m5602/m5602_s5k4aa.h
drivers/media/video/gspca/m5602/m5602_s5k83a.h
drivers/media/video/gspca/stv06xx/stv06xx.c
drivers/media/video/hdpvr/hdpvr-core.c
drivers/media/video/ivtv/ivtv-driver.c
drivers/media/video/ivtv/ivtvfb.c
drivers/media/video/marvell-ccic/mcam-core.c
drivers/media/video/msp3400-driver.c
drivers/media/video/msp3400-driver.h
drivers/media/video/omap/omap_vout.c
drivers/media/video/omap/omap_vout_vrfb.c
drivers/media/video/ov7670.c
drivers/media/video/saa7115.c
drivers/media/video/stk-webcam.c
drivers/media/video/tm6000/tm6000-alsa.c
drivers/media/video/tvp514x.c
drivers/media/video/tvp7002.c
drivers/media/video/upd64083.c
drivers/media/video/via-camera.c
drivers/media/video/zoran/zoran_device.c
drivers/media/video/zoran/zr36060.c
drivers/memstick/host/jmb38x_ms.c
drivers/memstick/host/r592.c
drivers/memstick/host/tifm_ms.c
drivers/misc/iwmc3200top/main.c
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/host/tifm_sd.c
drivers/mmc/host/vub300.c
drivers/mtd/nand/pxa3xx_nand.c
drivers/mtd/nand/r852.c
drivers/parport/parport_ip32.c
drivers/pci/hotplug/acpi_pcihp.c
drivers/pci/hotplug/acpiphp_core.c
drivers/pci/hotplug/acpiphp_ibm.c
drivers/pci/hotplug/cpcihp_zt5550.c
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/ibmphp_core.c
drivers/pci/hotplug/pci_hotplug_core.c
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pcihp_skeleton.c
drivers/pci/hotplug/rpaphp.h
drivers/pci/hotplug/rpaphp_core.c
drivers/pci/hotplug/shpchp.h
drivers/pci/hotplug/shpchp_core.c
drivers/pci/pcie/aer/aer_inject.c
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pcmcia/yenta_socket.c
drivers/platform/x86/compal-laptop.c
drivers/platform/x86/intel_oaktrail.c
drivers/platform/x86/msi-laptop.c
drivers/platform/x86/samsung-laptop.c
drivers/platform/x86/thinkpad_acpi.c
drivers/platform/x86/wmi.c
drivers/power/ds2760_battery.c
drivers/s390/char/raw3270.c
drivers/s390/char/vmwatchdog.c
drivers/scsi/aha1542.c
drivers/scsi/dc395x.c
drivers/scsi/nsp32.c
drivers/scsi/pcmcia/nsp_cs.c
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedi_fops.h
drivers/staging/media/go7007/snd-go7007.c
drivers/staging/media/lirc/lirc_bt829.c
drivers/staging/media/lirc/lirc_igorplugusb.c
drivers/staging/media/lirc/lirc_parallel.c
drivers/staging/media/lirc/lirc_serial.c
drivers/staging/media/lirc/lirc_sir.c
drivers/staging/media/lirc/lirc_zilog.c
drivers/staging/quatech_usb2/quatech_usb2.c
drivers/staging/serqt_usb2/serqt_usb2.c
drivers/staging/speakup/speakup.h
drivers/staging/speakup/synth.c
drivers/staging/vme/bridges/vme_tsi148.c
drivers/tty/rocket.c
drivers/tty/synclink.c
drivers/tty/synclinkmp.c
drivers/usb/atm/speedtch.c
drivers/usb/atm/ueagle-atm.c
drivers/usb/core/devio.c
drivers/usb/core/hub.c
drivers/usb/core/usb.c
drivers/usb/gadget/amd5536udc.c
drivers/usb/gadget/ether.c
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/net2272.c
drivers/usb/gadget/net2280.c
drivers/usb/gadget/omap_udc.c
drivers/usb/gadget/pch_udc.c
drivers/usb/gadget/serial.c
drivers/usb/gadget/zero.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/u132-hcd.c
drivers/usb/host/uhci-hcd.c
drivers/usb/misc/ftdi-elan.c
drivers/usb/misc/iowarrior.c
drivers/usb/musb/cppi_dma.c
drivers/usb/musb/musb_core.c
drivers/usb/serial/aircable.c
drivers/usb/serial/ark3116.c
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/ch341.c
drivers/usb/serial/cp210x.c
drivers/usb/serial/cyberjack.c
drivers/usb/serial/cypress_m8.c
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/empeg.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/funsoft.c
drivers/usb/serial/garmin_gps.c
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_ti.c
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipw.c
drivers/usb/serial/ir-usb.c
drivers/usb/serial/iuu_phoenix.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mos7720.c
drivers/usb/serial/mos7840.c
drivers/usb/serial/navman.c
drivers/usb/serial/omninet.c
drivers/usb/serial/opticon.c
drivers/usb/serial/option.c
drivers/usb/serial/oti6858.c
drivers/usb/serial/pl2303.c
drivers/usb/serial/qcserial.c
drivers/usb/serial/safe_serial.c
drivers/usb/serial/sierra.c
drivers/usb/serial/spcp8x5.c
drivers/usb/serial/ssu100.c
drivers/usb/serial/symbolserial.c
drivers/usb/serial/ti_usb_3410_5052.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb_wwan.c
drivers/usb/serial/visor.c
drivers/usb/serial/whiteheat.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_base.c
drivers/video/cirrusfb.c
drivers/video/hgafb.c
drivers/video/intelfb/intelfbdrv.c
drivers/video/logo/logo.c
drivers/video/neofb.c
drivers/video/omap/omapfb_main.c
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/omapfb/omapfb-main.c
drivers/video/omap2/omapfb/omapfb.h
drivers/video/pm2fb.c
drivers/video/pm3fb.c
drivers/video/riva/fbdev.c
drivers/video/smscufx.c
drivers/video/sstfb.c
drivers/video/tdfxfb.c
drivers/video/udlfb.c
drivers/video/uvesafb.c
drivers/video/vfb.c
drivers/watchdog/f71808e_wdt.c
drivers/watchdog/mpc8xxx_wdt.c
drivers/xen/xen-pciback/conf_space.c
drivers/xen/xen-pciback/xenbus.c
fs/lockd/mon.c
fs/nfs/client.c
fs/nfs/inode.c
include/acpi/acpixf.h
include/acpi/apei.h
include/linux/console.h
include/linux/lockd/lockd.h
include/linux/mmc/host.h
security/apparmor/include/apparmor.h
security/apparmor/lsm.c
virt/kvm/iommu.c

index cb423f5aef24b12247b1c604e021c421581cb4a9..c339a0880e6ee14ad2df04ecf8a91ae985bfe2d7 100644 (file)
@@ -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");
 
index 76dc02f155748af02278d465e3948e7c1a214cf0..e6652d716e45727cf992838b4420902b80436ce7 100644 (file)
@@ -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
index b8e08cb67a18a0b18dfa5d54d32a0177890f2b5b..ebaf037a787b5479dcc87100e883a3440b8ef25f 100644 (file)
@@ -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;
index 05fee06f4d6e03019a3bc55bd3595b8967304669..ee7fddc4665c9788d1502f0f28304493cede903b 100644 (file)
@@ -41,7 +41,7 @@
 
 #define HEST_PFX "HEST: "
 
-int hest_disable;
+bool hest_disable;
 EXPORT_SYMBOL_GPL(hest_disable);
 
 /* HEST table parsing */
index 19a61136d8488460c1d7be2f96bb2c8dc88d0500..88eb14304667bc6bef8726e06ee0ecd8f339cca5 100644 (file)
@@ -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"
index 07f7fea8a4e26471ce6fabd4b90ade3c69ec9e43..e50e31a518afbf69ebc575ac3c579551e635b2f5 100644 (file)
@@ -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"
index 08a44b532f7c886dd45c703cb4cd159fb9d6e706..eaef02afc7cfce7004e3d74e25b733ee4d54cb97 100644 (file)
@@ -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;
index e0bc9646a38e65a11897e45e85a907adbbc03dd4..55d6179dde589fa0c9a8e66f9c4935137b756acc 100644 (file)
@@ -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)
 {
index 1e9140626a8371eae9e846bb2fd9fb3a327136e6..e7e610aa9a7a4c6a9321671eec2002badadb17c0 100644 (file)
@@ -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)");
 
index 9a51df4f5b746518fd7e580882f1c261eb202500..b182c2f7d777c077806d79a261a600454a701438 100644 (file)
@@ -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[] = {
index 9cf20355ceec72750e4d348520f4f977ead482af..8d680562ba73a1ca17120779c06aa834eea18f39 100644 (file)
@@ -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
index 0358e55356c85f13ce96670f94b4cef626ce70ae..211fc44f84be6ddda0112dbf2ad8a55ca1810c47 100644 (file)
@@ -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*/
 
index ad124525ac23f2d8edd34d80708b9518c177f306..ec64e7f5d1ce6398655aed2b589dd365b39337d2 100644 (file)
@@ -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))
index 869e7676d46f47abcb1ffe1812efd3316d234f74..831e3ac156e625517df61fb3a1255973ea565ca7 100644 (file)
    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;
index f21b520ef4195228713d34c2f2157ce1b928e37d..ec8f9ed6326eca34be8b837ce62aefecc1b4a25a 100644 (file)
 #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;
index a79fb4f7ff622632809c2b93f47df93fb7561ccb..4a27b1de5fcb9fb0fef805fb51d0d2f1bc418a29 100644 (file)
 #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;
index 7179f79d746838f24640ac7c59fadb41a1c5f024..2596042eb987c2d655e56f9f0448e565a843aa34 100644 (file)
 #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;
index 4abd2bcd20fb8b069362e2684c8eed2dcd6a0620..51a972704db503932d39e9ab917480af232bf4ce 100644 (file)
@@ -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;
 
index 55ac349695c48c147c5377030fe41254e9fd8ec8..f00f596c102997c8b32c48d4e41007eeae9a99a4 100644 (file)
 
 #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;
 
index 9c5b2dc38e29455884618b4dfb5c8256d5fa5496..a767d4de45a4177d7fbc213f6f5edbcb42ae21c2 100644 (file)
@@ -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
 
index 48ad2a7ab080ba9a58c425da7cc959dba0e1e3de..07114489994f5f383f4aef45c38cca72b38b52f9 100644 (file)
@@ -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];
 
index 2118211aff99835e457f266a10caeed72de7c110..1bbf7645a97c4d3249ac594ef36c2ce52f66afe2 100644 (file)
 #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);
index 780498d765811db559d8bae1108357704490bf40..444f8b6ab41104003d94e7d510c3f89af02ecfce 100644 (file)
@@ -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)
index 29aacd81de78184d9b3d85d203465ad82476d0b3..08704ae539566fa8c337b9dbaa34c31654ff0a8c 100644 (file)
@@ -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)
index 6e40072fbf675e3c69b105cc8ea1d05491bba485..40cc0cf2ded639f6b4e3f28cfb1b093660c19ae1 100644 (file)
@@ -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");
 
index 9397ab49b72e8b20f3984a55e31819fea26e20d7..50fcf9c04569a18007816dc322382103a604c542 100644 (file)
@@ -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];
index 97c3edb95ae747a3ff2832f48e6daf098fad83bf..f43485607063af7490ae37013de97675fbf156c5 100644 (file)
@@ -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);
index a12f52400dbc5ed6ef65885ff7dc80052ed49ad6..bf586ae1ee83cabad66a2029e0c540b74bee0370 100644 (file)
@@ -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;
index 15781396af25a7ae301d04a92024e74b3e94f373..07f6a5abe3722a1143c0dd71ef6e8527caa155bd 100644 (file)
@@ -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
index 85da8740586b3dbe381373d6f7e52d6b348329ac..732215b805c1af45f391769702c0b515ea888cb1 100644 (file)
@@ -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) \
index 10cc44ceb5d1259dc1c91a90168702f5a048ad9b..a1748621111be511a8694a4d91ab74094f45c631 100644 (file)
@@ -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)
index b153674431f19c7f4674a03c000da279a62ee878..e294e1b3616cf7c54343e6260a931676422f6206 100644 (file)
@@ -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;
 
index 68375bc3aef66cdf6c08662a7502aef42ef08f81..80e95aa3bf14ea96ade61193783f490d35f08329 100644 (file)
@@ -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)");
index f779009104eb93f79b29c94d8eef84561d1e468a..b71b77ab0dc759d1524b8302a7843583c2ff861b 100644 (file)
@@ -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);
index 65a35cf5b3c5c57b58803e78ae3eda0b0e99f266..3b728e8f169b9fe850b55e4a74e3965f1fe983b3 100644 (file)
@@ -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,
index d30855a75786ec7609b624b7492631cda41ab540..34a14a77e008c95b010060791c7f7b417eca0ed4 100644 (file)
@@ -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");
 
index 522860ab6ce8758e29c81654b210c416d804c959..554f046bcf20a4949fc108fab40e11206486856d 100644 (file)
@@ -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)
 {
index 1ad0a885c5a5795034759dfc93c9c13015d211d5..0158cc35cb2e180984f90cd49dfdf364764c0831 100644 (file)
@@ -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[] = {
index cfcc3b6fb6bf9fcc4cdafbd7351206769ee61144..ed60242d6a0ad89a77af8f7cc675b92b114ce4dc 100644 (file)
@@ -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);
index d9803958e49f1d56afa134c9d174abf422c2984b..ffb229af7861369a7ade43be99d1fd0ce98767b5 100644 (file)
@@ -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");
index 38c0b87676de222e9bb142b44168e14d029bddd8..603ef2af270758fb4fd9a6f860a779de40c4288f 100644 (file)
@@ -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 */
 
index 3b43df418613faf329abe451022126109aae15ae..8bd6c5c9e05bc6781891cf65cb0f7a05c5faa1ae 100644 (file)
@@ -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.");
 
index 6914195cfd350bd826872f6f6beab08e65b48274..88953f99e91437da56a3cad38f593141b3d2e98f 100644 (file)
@@ -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");
 
index bde50e34d01322144639695d0608ec14144ed84f..374118f2b9f94b73fc47bf0ec5d2f83e86bbc697 100644 (file)
@@ -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");
 
index 65b685e2c7b739634fd62f6d17238a1003945604..17a8fa2d9ae947492cb1ea6daaec152e688cad2e 100644 (file)
@@ -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");
 
index 6e5d0ae594b06e53ef7cd5acc1327bd4fd366041..35aa5149307a28f7330b5a27698750f2afdd984f 100644 (file)
@@ -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");
 
index 9ded133e43f04ff09fbd90c3ddeaa803b1eb65be..d3100eab6b2f281bd77e94f1e669003ccd892fa3 100644 (file)
@@ -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");
 
index 3cc6fef22087b19d03770b94a81d303b26d5afab..45ec7e7c3c278d3c774aec9cf4a4897aad8a342b 100644 (file)
@@ -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");
 
index 3ee398d0e4c914109fdd08f5451a308d2299d063..aa58b25565bc3e1d21dd23f2baca73d3fe7b2e9c 100644 (file)
@@ -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");
 
index 0254e181893d9f2e9bd0d010d37f6544559ad3e5..063bd9508d8a1505dadba8699e806a1c93901356 100644 (file)
@@ -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");
 
index 63bb1cc2a042125fe87e2bf9243a4bc40ffc5ab8..fa88868cb556a99a382d5d84694fa615f6c60def 100644 (file)
@@ -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)
index 3c110fbc409bb2c2ecd0cc2d7c6f9048914256cf..c08ceb957aa7fd76e28bec76c6fa40f83eac4db2 100644 (file)
 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)");
 
index e6f539e26f65fb97918e132164d45b80ce4a0113..58893772c3d82f31d60861c8369e47161dc05535 100644 (file)
@@ -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);
index 0b012f1f8ac5791ba9a4aa7926f75fbe97c57567..2a62c998044a9933520a56532650a990b248a8f4 100644 (file)
@@ -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!");
 
index 25b9fe3a9f8ef02047f689645755b347223a94a5..d3be99fb4154fdc1f55198d46b3d1f6611c1dd12 100644 (file)
@@ -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");
index a81bd7575792f996763186339b7e3e40c835ce18..14717304b3888fc5ce45eb2771629dc39368bd64 100644 (file)
 
 #define DRV_NAME "cmd640"
 
-static int cmd640_vlb;
+static bool cmd640_vlb;
 
 /*
  * CMD640 specific registers definition.
index 6929f7fce93a735114333709e8cd020f319c01d3..46af4743b3e68db2a7d099d2cec82ae3e95eb411 100644 (file)
@@ -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");
index 3feaa26410be9b26eb30d4d52768324d3cff0294..51beb85250d4400a06e90eca0b4f539825cc7438 100644 (file)
@@ -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");
 
index 808bcdcbf8e1bab0e6e45354d7d684c75e6917cd..986f2513eab435e06e2597977624fd9d8a2550ce 100644 (file)
@@ -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");
index 979d342c338ae71b39b03edd7986a7ea37732f97..547d7cf2e0167e760da5a31add56eec953980699 100644 (file)
@@ -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");
index f22edc66b030b4a58c09caa3952353394686ecce..f1a6796b165c154bffd18d9c6f99e407aac24d96 100644 (file)
@@ -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");
 
index a743e68a8903cc62185d0fc861e888242e630cf7..7f56b738d7621f8a37377afc2f93e7236f387996 100644 (file)
@@ -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.");
index 3f0244fd8e623010433c5086c1656bf812a62fbb..8bbfe5557c7bbd178cea496ef8abe65ee9f5041e 100644 (file)
@@ -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");
index 47adcd09cb26a3c6f867374ec31b9aa6dfb039e1..5cfb7812066961281a37710dca2f033c80b4d733 100644 (file)
@@ -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");
index aaf6023a4835e79551226a6262678dc83b28d7bb..f08f6eaf3fa8822340c8d01693d4fbe5c3dfdd75 100644 (file)
@@ -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;
index 8af8d4f7bdb1be759df2cbc6b3bd82abdbfe3d90..832e7a7d0aeeaaf1d4b213120532de26d6465065 100644 (file)
@@ -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;
index 5965b3df8f2f6ee0c10dbbc9b7f8218823161ccc..7013da5e9eda8e9df0b8511568b4b2dd18ea177b 100644 (file)
@@ -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");
 
index 32bbd4c77b7c5da7f6ef4e4b18871f0df2ebc3bd..fd7a0d5bc94d94d21fc3e21f5f23c52c1b512929 100644 (file)
 #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");
 
index 52b41934898379a1d40dcea6bd283a8f50ca8d9a..e2bdfd4bea70bbf1add272fc8c2152c2790c37b1 100644 (file)
@@ -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");
 
index de7e8bc17b1f053906bfea7811bd791ed38dcd96..e6c9931f02c73176483105b494feab56b19ddacd 100644 (file)
@@ -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.");
 
index 4b755cb5b38cfc183a02c894e623352e486750b2..1c58aafa523fd8ed699bd274378f1e8b2c21dd21 100644 (file)
 #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)");
 
index 979c443bf1efa78fc150cd190073e111d907b842..be3316073ae7db4f8a21c80f0207893ea3dd433d 100644 (file)
@@ -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.");
 
index 7f8f538a9806d067f7aef37943d8050d041f50ac..1df19bb8534ab4b0ae9aa0a6678ea3d2a03ea912 100644 (file)
 #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");
 
index 81e33862394443261d3958ae60d17bb2ec98fbc9..d13143b68b3e0b32f7a9e1623c113f14a74de13f 100644 (file)
@@ -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");
 
index d2b57536feeabd776e105df75433e9296444a398..46e83ad53f4399b01046ea7b3150a2ab22239813 100644 (file)
@@ -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 */
 
index 06cef3ccc63a7d180864c7e99e4f5ad16a8b7cbc..3a5ebf452e810bde7b032650f3e942b3fd6d085e 100644 (file)
 #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");
 
index 9c8d7aa053c5ae4d2631aa22590f1967e00562e8..a0ed668d4d2ac428d77c19c5a4f0d69fc0148bc9 100644 (file)
@@ -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);
 
 /* ------------------------------------------------------------- */
index d3530f6e8115350668b148377d61a85256883a0a..9743b24ef9d6f7a1cc4f41bd9c4e3ff60b036671 100644 (file)
@@ -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 },
index ca710ab278ec49788a50a483375c7de08b340a1b..023de789f2505b82f9782805c825609ce1328e91 100644 (file)
@@ -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);
index a498135a4e80c78e8ba4fe63ba485476f3a11f46..1ed1677c916f260285d0acefa255ef7adf337802 100644 (file)
@@ -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");
 
index 614ebebaaa28cdcf7d7c765b1c0c959fd7ac4782..57371e1485ab4e14aaba55ca3ae10e81b52caff6 100644 (file)
@@ -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");
 
index 399beb1638d1aa9acf009c1c05aeb9cf1bc79af2..5c6a2d876562dd73f4a6f71fa958353182012dc5 100644 (file)
@@ -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");
 
index 8a712392cd3829a32dd471f50a557aaa8e774cc3..b27e530a87a4dc6f17046de52c22011efbf7da36 100644 (file)
 
 #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");
 
index 02367308ff2e781da67bc4ceb03f0e9463463894..c60d025044ee5ba2009b43717fb2273cf3c80c19 100644 (file)
@@ -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 "
index bd51a764351b8483878e04f070206c878c5fc575..4fc024d770406bf6588b1d409aa7be1df5ab98f0 100644 (file)
@@ -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).");
 
index c71c77bd7f4bd5db129fae67f8c273d76e02f1cf..6a2bf3de845668c162cf679fdab5eaaf775005c0 100644 (file)
@@ -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
index edadc8449a3d109ab736afdd24f71058fb07b171..36ce0611c0379824d7d2b792611a2acfb7c20cf8 100644 (file)
@@ -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);
index 3fb76e3834c99da96e8621ab4ecd89458913d259..87c1ee13b058541b0ec9cfa3f0f33c75f173334b 100644 (file)
@@ -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.");
 
index 27997a9ceb0d4552944bbbb6605bfc711ad9d9ea..ca12d3289bfe90a886da3e25ef5c40c9a2a6452f 100644 (file)
@@ -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
index 20bb12d6fbbea9b48956b8fc31a802db157f0aa0..21105bf9594d37d40842b4874c372c0ecf1bc510 100644 (file)
 
 /* 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, ...)                                 \
index b1d29d09eeae77fd2fde0c055fc2ef7b09ff4e4a..d6f4bfe09391e92b68981499d99bb2e076060b98 100644 (file)
@@ -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
index e7f7a57bf6845347e50c3ed2975c67f15c2e05ec..b09c5fae489bd020ea4748cd9c33d67dc12568b0 100644 (file)
@@ -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");
 
index cd8ff0473184ea06a14bf38f0b97bfc82db91917..fda32f52554a75d63cb34652b4b7bd61b49c3890 100644 (file)
@@ -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 */
index 5909f2557ab4fbadbaec0a58d7635a37f0d86db7..1d64af9adf719c5eb995a8f5170be94a221afbb9 100644 (file)
@@ -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);
 
index d93e5ab45fd31baadc8a325265f30911ef7dcbe8..51c5b9ad67d8ba4a0b441e5f8c1aa54427b46645 100644 (file)
@@ -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);
 
index c6ff32a6137c61a22c6b0774c09a18d5fd0158d0..349bd9c2aff546ae3afd2a06411d0f0ceb24f285 100644 (file)
@@ -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[] = "-";
index 09e99de5fd21823194358cd8ca8a9f8f30cb30c7..58be4f3bb3cb40e4ca3723b64afa84ba8294ee9a 100644 (file)
@@ -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.");
index 68d1240f493c98f9327858dd9170d75ee232c802..04bf6627d3629c824e174e4679de2525ff16ee38 100644 (file)
@@ -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.");
index 9fe3816b2aa04f8c1e9b69e2118bd08c908bf8bb..0c4493675438ee1e0cabd3b6bb87a85153713de7 100644 (file)
@@ -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)},
index b1f0c492036abd257379c9a71bc050928076c874..8c672b5c8c6a2797d659c29a0c644c5cced39a40 100644 (file)
 
 /* 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);
index 2efd607987ec2ecaee9339360eec6cecf6d2d445..2b6a13b508f7331518acb30099fa2f885ab426d1 100644 (file)
@@ -86,7 +86,7 @@
 
 /* Kernel module parameters */
 extern int force_sensor;
-extern int dump_sensor;
+extern bool dump_sensor;
 
 int ov7660_probe(struct sd *sd);
 int ov7660_init(struct sd *sd);
index da9a129b739d2e9cb5b4465e338a8575f79e4b1b..f7aa5bf68983d3d4245b6fc914a433adc9b6d161 100644 (file)
 
 /* Kernel module parameters */
 extern int force_sensor;
-extern int dump_sensor;
+extern bool dump_sensor;
 
 int ov9650_probe(struct sd *sd);
 int ov9650_init(struct sd *sd);
index 3383595963987c9dc560ae9806132959b3bc154b..81a2bcb88fe3c3ac61e2e3b8d442346d9acc5a32 100644 (file)
 
 /* Kernel module parameters */
 extern int force_sensor;
-extern int dump_sensor;
+extern bool dump_sensor;
 
 int po1030_probe(struct sd *sd);
 int po1030_init(struct sd *sd);
index 8cc7a3f6da725fbbe4d70dcd7135f90b24ee3a93..8e0035e731c777c95b15b15971b61722e7915090 100644 (file)
@@ -65,7 +65,7 @@
 
 /* Kernel module parameters */
 extern int force_sensor;
-extern int dump_sensor;
+extern bool dump_sensor;
 
 int s5k4aa_probe(struct sd *sd);
 int s5k4aa_init(struct sd *sd);
index 80a63a236e240e83783b0b7078c91eff6a61ec7c..79952247b534e029569a8d6c8eab4f7afe4590d9 100644 (file)
@@ -41,7 +41,7 @@
 
 /* Kernel module parameters */
 extern int force_sensor;
-extern int dump_sensor;
+extern bool dump_sensor;
 
 int s5k83a_probe(struct sd *sd);
 int s5k83a_init(struct sd *sd);
index 0ab425fbea9ab32cada5e22973986631c8b8bde3..6f878f6c6e996283427d62ffd5ffee4d1a4b7dd7 100644 (file)
@@ -36,8 +36,8 @@ MODULE_AUTHOR("Erik Andrén");
 MODULE_DESCRIPTION("STV06XX USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-static int dump_bridge;
-static int dump_sensor;
+static bool dump_bridge;
+static bool dump_sensor;
 
 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data)
 {
index 3f1a5b1beeba63f7336f96d9a3d3310c2530d77b..e5eb56a5b6180cd80e43d25812cc406bdda06921 100644 (file)
@@ -49,7 +49,7 @@ module_param(default_audio_input, uint, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / "
                 "1=RCA front / 2=S/PDIF");
 
-static int boost_audio;
+static bool boost_audio;
 module_param(boost_audio, bool, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(boost_audio, "boost the audio signal");
 
index 41108a9a195ecb5b07fd6ad4697f978fc7cd0c9a..544af91cbdc1b0fb9962d6550cb9c4892299a74b 100644 (file)
@@ -99,7 +99,7 @@ static int i2c_clock_period[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
 
 static unsigned int cardtype_c = 1;
 static unsigned int tuner_c = 1;
-static unsigned int radio_c = 1;
+static bool radio_c = 1;
 static unsigned int i2c_clock_period_c = 1;
 static char pal[] = "---";
 static char secam[] = "--";
index 6b7c9c8233309975726e42a65f97296df84cff54..d0fbfcf7133da88cfabf2caf52c26e685aae35b1 100644 (file)
@@ -58,7 +58,7 @@
 /* card parameters */
 static int ivtvfb_card_id = -1;
 static int ivtvfb_debug = 0;
-static int osd_laced;
+static bool osd_laced;
 static int osd_depth;
 static int osd_upper;
 static int osd_left;
index 80ec64d2d6d87f8e8fc4dcf4d6da81d67400fbc6..2c8fc0f6d690e41c1c22d7b4adeb350f7ac66a65 100644 (file)
@@ -51,7 +51,7 @@ static int delivered;
  * sense.
  */
 
-static int alloc_bufs_at_read;
+static bool alloc_bufs_at_read;
 module_param(alloc_bufs_at_read, bool, 0444);
 MODULE_PARM_DESC(alloc_bufs_at_read,
                "Non-zero value causes DMA buffers to be allocated when the "
@@ -73,11 +73,11 @@ MODULE_PARM_DESC(dma_buf_size,
                "parameters require larger buffers, an attempt to reallocate "
                "will be made.");
 #else /* MCAM_MODE_VMALLOC */
-static const int alloc_bufs_at_read = 0;
+static const bool alloc_bufs_at_read = 0;
 static const int n_dma_bufs = 3;  /* Used by S/G_PARM */
 #endif /* MCAM_MODE_VMALLOC */
 
-static int flip;
+static bool flip;
 module_param(flip, bool, 0444);
 MODULE_PARM_DESC(flip,
                "If set, the sensor will be instructed to flip the image "
index d0f5388572855d8fed885a1ed54d1a37db3d7ec1..d7cd0f633f63905c77095b959efa724b7b5ffebc 100644 (file)
@@ -69,12 +69,12 @@ MODULE_LICENSE("GPL");
 /* module parameters */
 static int opmode   = OPMODE_AUTO;
 int msp_debug;          /* msp_debug output */
-int msp_once;           /* no continuous stereo monitoring */
-int msp_amsound;        /* hard-wire AM sound at 6.5 Hz (france),
+bool msp_once;          /* no continuous stereo monitoring */
+bool msp_amsound;       /* hard-wire AM sound at 6.5 Hz (france),
                            the autoscan seems work well only with FM... */
 int msp_standard = 1;    /* Override auto detect of audio msp_standard,
                            if needed. */
-int msp_dolby;
+bool msp_dolby;
 
 int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual
                                        (msp34xxg only) 0x00a0-0x03c0 */
index 831e8db4368c06e23915518b82abb56dde84fcd1..fbe5e0715f9309d0c76fce2ed61fb16d5614a512 100644 (file)
 
 /* module parameters */
 extern int msp_debug;
-extern int msp_once;
-extern int msp_amsound;
+extern bool msp_once;
+extern bool msp_amsound;
 extern int msp_standard;
-extern int msp_dolby;
+extern bool msp_dolby;
 extern int msp_stereo_thresh;
 
 struct msp_state {
index ee0d0b39cd170e1700b659a7af2e1085c580b9fa..0de598bf66bb14dc563d4d15dd8a15ad3aecd50b 100644 (file)
@@ -70,9 +70,9 @@ static u32 video1_numbuffers = 3;
 static u32 video2_numbuffers = 3;
 static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE;
 static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE;
-static u32 vid1_static_vrfb_alloc;
-static u32 vid2_static_vrfb_alloc;
-static int debug;
+static bool vid1_static_vrfb_alloc;
+static bool vid2_static_vrfb_alloc;
+static bool debug;
 
 /* Module parameters */
 module_param(video1_numbuffers, uint, S_IRUGO);
index ebebcac49225209e133141f113b700bdbd65aa95..4be26abf6cea7a323ef0b15e7e1cedf3177ab916 100644 (file)
@@ -84,7 +84,7 @@ void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout)
 }
 
 int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
-                       u32 static_vrfb_allocation)
+                             bool static_vrfb_allocation)
 {
        int ret = 0, i, j;
        struct omap_vout_device *vout;
index 8aa05853128098732c6090421a1bba38e1c8315a..6a564964853a2cd726e844664ad369c687a5b147 100644 (file)
@@ -25,7 +25,7 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>");
 MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors");
 MODULE_LICENSE("GPL");
 
-static int debug;
+static bool debug;
 module_param(debug, bool, 0644);
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
 
index 5cfdbc78b91848df1305feef404c5677d587e260..0ef5484696b647a653c82744061c03f203a29fb7 100644 (file)
@@ -57,7 +57,7 @@ MODULE_AUTHOR(  "Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, "
                "Hans Verkuil, Mauro Carvalho Chehab");
 MODULE_LICENSE("GPL");
 
-static int debug;
+static bool debug;
 module_param(debug, bool, 0644);
 
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
index b7fb5a5cad7e7582690acbb6443a1e2c1bfa0d10..3c61aec517ac3d4edcd6ea1a07a5c36dc9bd6f46 100644 (file)
 #include "stk-webcam.h"
 
 
-static int hflip = 1;
+static bool hflip = 1;
 module_param(hflip, bool, 0444);
 MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1");
 
-static int vflip = 1;
+static bool vflip = 1;
 module_param(vflip, bool, 0444);
 MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1");
 
index 7d675c72fd479cffac862f00c6afb9bd85342688..bb2047c1035898cf63248bf6e7ca975992b3ba76 100644 (file)
@@ -42,7 +42,7 @@
 
 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;     /* Index 0-MAX */
 
-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 tm6000x soundcard. default enabled.");
index 926f03931156541f98937ac9a3b0040c7a0f6a12..dd26cacd0556bac6bfe2d75d1ae54848a6f80698 100644 (file)
@@ -52,7 +52,7 @@
 #define LOCK_RETRY_DELAY                (200)
 
 /* Debug functions */
-static int debug;
+static bool debug;
 module_param(debug, bool, 0644);
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
 
index 7875e80cb2ff277bdd555e55f52cdb0d87f666d0..236c559d5f51f11e25cff118173a0b3643baf379 100644 (file)
@@ -63,7 +63,7 @@ MODULE_LICENSE("GPL");
 #define TVP7002_CL_MASK                0x0f
 
 /* Debug functions */
-static int debug;
+static bool debug;
 module_param(debug, bool, 0644);
 MODULE_PARM_DESC(debug, "Debug level (0-2)");
 
index 9bbe61700fd5c238d253d309ea37a21a4f3ca6a1..65d065aa6091eb34ee4cea5c18b6e73ea892b1d1 100644 (file)
@@ -34,7 +34,7 @@ MODULE_DESCRIPTION("uPD64083 driver");
 MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil");
 MODULE_LICENSE("GPL");
 
-static int debug;
+static bool debug;
 module_param(debug, bool, 0644);
 
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
index cbf13d09b4ac84c20c6cfe2ba86180e07355bbfc..bfae41ba53c381dce8f1e0b7bd0b602325a040d7 100644 (file)
@@ -34,13 +34,13 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>");
 MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver");
 MODULE_LICENSE("GPL");
 
-static int flip_image;
+static bool flip_image;
 module_param(flip_image, bool, 0444);
 MODULE_PARM_DESC(flip_image,
                "If set, the sensor will be instructed to flip the image "
                "vertically.");
 
-static int override_serial;
+static bool override_serial;
 module_param(override_serial, bool, 0444);
 MODULE_PARM_DESC(override_serial,
                "The camera driver will normally refuse to load if "
index e8a27844bf39c36e14f466ebb9cd2941f61b4ef3..e86173bd1327865cc8c07147b0dfcc7d43c84700 100644 (file)
@@ -57,7 +57,7 @@
                   ZR36057_ISR_GIRQ1 | \
                   ZR36057_ISR_JPEGRepIRQ )
 
-static int lml33dpath;         /* default = 0
+static bool lml33dpath;                /* default = 0
                                 * 1 will use digital path in capture
                                 * mode instead of analog. It can be
                                 * used for picture adjustments using
index 5e4f57cbf31478d35f361a55ca2adc8f2f77f3b3..f08546fe22347718777c8b330b9ec4ce54bb91d5 100644 (file)
@@ -50,7 +50,7 @@
 /* amount of chips attached via this driver */
 static int zr36060_codecs;
 
-static int low_bitrate;
+static bool low_bitrate;
 module_param(low_bitrate, bool, 0);
 MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate");
 
index 6ce70e9615d342660f7da9e71339ffad4c3087a3..5319e9b65847e0749b033f6e55a5d0a82261ef21 100644 (file)
@@ -21,7 +21,7 @@
 
 #define DRIVER_NAME "jmb38x_ms"
 
-static int no_dma;
+static bool no_dma;
 module_param(no_dma, bool, 0644);
 
 enum {
index 668f5c6a0399f932743cbf16a8c03f1264c78b50..29b2172ae18fc4f6439d4a026bdf511e496bb076 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/swab.h>
 #include "r592.h"
 
-static int r592_enable_dma = 1;
+static bool r592_enable_dma = 1;
 static int debug;
 
 static const char *tpc_names[] = {
index b7aacf47703a33c1609f51ddfb5c7ec56a91a1de..6902b83eb1b48a803bff1fe51bfc0741ed8ed2a3 100644 (file)
@@ -22,7 +22,7 @@
 
 #define DRIVER_NAME "tifm_ms"
 
-static int no_dma;
+static bool no_dma;
 module_param(no_dma, bool, 0644);
 
 /*
index b1f4563be9aecb92f946e7fc6795ad80e7cc0fae..701eb600b1271c2e795b038d48f6ca1e2e1b4fce 100644 (file)
@@ -376,20 +376,20 @@ static int blocks;
 module_param(blocks, int, 0604);
 MODULE_PARM_DESC(blocks, "max_blocks_to_send");
 
-static int dump;
+static bool dump;
 module_param(dump, bool, 0604);
 MODULE_PARM_DESC(dump, "dump_hex_content");
 
-static int jump = 1;
+static bool jump = 1;
 module_param(jump, bool, 0604);
 
-static int direct = 1;
+static bool direct = 1;
 module_param(direct, bool, 0604);
 
-static int checksum = 1;
+static bool checksum = 1;
 module_param(checksum, bool, 0604);
 
-static int fw_download = 1;
+static bool fw_download = 1;
 module_param(fw_download, bool, 0604);
 
 static int block_size = IWMC_SDIO_BLK_SIZE;
@@ -398,7 +398,7 @@ module_param(block_size, int, 0404);
 static int download_trans_blks = IWMC_DEFAULT_TR_BLK;
 module_param(download_trans_blks, int, 0604);
 
-static int rubbish_barker;
+static bool rubbish_barker;
 module_param(rubbish_barker, bool, 0604);
 
 #ifdef CONFIG_IWMC3200TOP_DEBUG
index 950b97d7412a4f6f5f562401f132ed0d568a969a..75d7d7e17366597c11e4eebee1d8e53f74ce484f 100644 (file)
@@ -48,7 +48,7 @@ static struct workqueue_struct *workqueue;
  * performance cost, and for other reasons may not always be desired.
  * So we allow it it to be disabled.
  */
-int use_spi_crc = 1;
+bool use_spi_crc = 1;
 module_param(use_spi_crc, bool, 0);
 
 /*
@@ -58,9 +58,9 @@ module_param(use_spi_crc, bool, 0);
  * overridden if necessary.
  */
 #ifdef CONFIG_MMC_UNSAFE_RESUME
-int mmc_assume_removable;
+bool mmc_assume_removable;
 #else
-int mmc_assume_removable = 1;
+bool mmc_assume_removable = 1;
 #endif
 EXPORT_SYMBOL(mmc_assume_removable);
 module_param_named(removable, mmc_assume_removable, bool, 0644);
index 14664f1fb16fb560c526dd30817cc10ae6db1adf..afa6bd2b7b7013be1de408d6ab8ae21d411b385a 100644 (file)
@@ -64,7 +64,7 @@ int mmc_attach_sd(struct mmc_host *host);
 int mmc_attach_sdio(struct mmc_host *host);
 
 /* Module parameters */
-extern int use_spi_crc;
+extern bool use_spi_crc;
 
 /* Debugfs information for hosts and cards */
 void mmc_add_host_debugfs(struct mmc_host *host);
index f70d04664cac8aff6223df5d2965e630db826044..69d249f51d6ac799263980ad8c00b93358399020 100644 (file)
@@ -22,8 +22,8 @@
 #define DRIVER_NAME "tifm_sd"
 #define DRIVER_VERSION "0.8"
 
-static int no_dma = 0;
-static int fixed_timeout = 0;
+static bool no_dma = 0;
+static bool fixed_timeout = 0;
 module_param(no_dma, bool, 0644);
 module_param(fixed_timeout, bool, 0644);
 
index 2ec978bc32ba47232b6618db96e2db1bebb25038..3135a1a5d75d004fda64cf0160f14481bc6af333 100644 (file)
@@ -223,25 +223,25 @@ enum SD_RESPONSE_TYPE {
 #define FUN(c) (0x000007 & (c->arg>>28))
 #define REG(c) (0x01FFFF & (c->arg>>9))
 
-static int limit_speed_to_24_MHz;
+static bool limit_speed_to_24_MHz;
 module_param(limit_speed_to_24_MHz, bool, 0644);
 MODULE_PARM_DESC(limit_speed_to_24_MHz, "Limit Max SDIO Clock Speed to 24 MHz");
 
-static int pad_input_to_usb_pkt;
+static bool pad_input_to_usb_pkt;
 module_param(pad_input_to_usb_pkt, bool, 0644);
 MODULE_PARM_DESC(pad_input_to_usb_pkt,
                 "Pad USB data input transfers to whole USB Packet");
 
-static int disable_offload_processing;
+static bool disable_offload_processing;
 module_param(disable_offload_processing, bool, 0644);
 MODULE_PARM_DESC(disable_offload_processing, "Disable Offload Processing");
 
-static int force_1_bit_data_xfers;
+static bool force_1_bit_data_xfers;
 module_param(force_1_bit_data_xfers, bool, 0644);
 MODULE_PARM_DESC(force_1_bit_data_xfers,
                 "Force SDIO Data Transfers to 1-bit Mode");
 
-static int force_polling_for_irqs;
+static bool force_polling_for_irqs;
 module_param(force_polling_for_irqs, bool, 0644);
 MODULE_PARM_DESC(force_polling_for_irqs, "Force Polling for SDIO interrupts");
 
index 8544d6bf50a0ae837465d28e60bb2bf0e72edf73..5c3d719c37e6645d70385c3b75b71cf5992bdf7c 100644 (file)
@@ -185,7 +185,7 @@ struct pxa3xx_nand_info {
        uint32_t                ndcb2;
 };
 
-static int use_dma = 1;
+static bool use_dma = 1;
 module_param(use_dma, bool, 0444);
 MODULE_PARM_DESC(use_dma, "enable DMA for data transferring to/from NAND HW");
 
index f20f393bfda607d84408d5a072898124365f1490..769a4e096b3c6b8fc3ef036148bf78a609f289a1 100644 (file)
@@ -22,7 +22,7 @@
 #include "r852.h"
 
 
-static int r852_enable_dma = 1;
+static bool r852_enable_dma = 1;
 module_param(r852_enable_dma, bool, S_IRUGO);
 MODULE_PARM_DESC(r852_enable_dma, "Enable usage of the DMA (default)");
 
index 0dc34f12f92e5865f22ad503c582f8cf6ba4f88a..d4716273651eb4354a7834304bdf812e69f9c647 100644 (file)
 #define PARPORT_IP32_ENABLE_EPP        (1U << 3)
 #define PARPORT_IP32_ENABLE_ECP        (1U << 4)
 static unsigned int features = ~0U;
-static int verbose_probing =   DEFAULT_VERBOSE_PROBING;
+static bool verbose_probing =  DEFAULT_VERBOSE_PROBING;
 
 /* We do not support more than one port. */
 static struct parport *this_port = NULL;
index 095f29e13734ad8e830e2614a42b7dc6c5d4a2b8..2a47e82821dacff72dd227950a6c3de828755053 100644 (file)
@@ -44,7 +44,7 @@
 #define        METHOD_NAME__SUN        "_SUN"
 #define        METHOD_NAME_OSHP        "OSHP"
 
-static int debug_acpi;
+static bool debug_acpi;
 
 static acpi_status
 decode_type0_hpx_record(union acpi_object *record, struct hotplug_params *hpx)
index efa9f2de51c1ff532a040037c851c425bf974153..aa41631e9e02139db31203f8b960bc3b46769207 100644 (file)
@@ -47,7 +47,7 @@
 /* name size which is used for entries in pcihpfs */
 #define SLOT_NAME_SIZE  21              /* {_SUN} */
 
-static int debug;
+static bool debug;
 int acpiphp_debug;
 
 /* local variables */
index e525263210ee7e1fa32ba8da010681c1a3863cd4..c35e8ad6db0142f0ddac2b4697cd4edef416cda7 100644 (file)
@@ -43,7 +43,7 @@
 #define DRIVER_AUTHOR  "Irene Zubarev <zubarev@us.ibm.com>, Vernon Mauery <vernux@us.ibm.com>"
 #define DRIVER_DESC    "ACPI Hot Plug PCI Controller Driver IBM extension"
 
-static int debug;
+static bool debug;
 
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
index 41f6a8d79c810ff227a89546539faba754bb7a63..6bf8d2ab164f763739735f65f8e490e39edd787d 100644 (file)
@@ -57,8 +57,8 @@
 #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
 
 /* local variables */
-static int debug;
-static int poll;
+static bool debug;
+static bool poll;
 static struct cpci_hp_controller_ops zt5550_hpc_ops;
 static struct cpci_hp_controller zt5550_hpc;
 
index f1ce99cceac60a2135cf8292da0013eebeadb2a1..187a199da93c46c7fe387328bff58f72f7f2b597 100644 (file)
@@ -57,8 +57,8 @@ struct irq_routing_table *cpqhp_routing_table;
 static void __iomem *smbios_table;
 static void __iomem *smbios_start;
 static void __iomem *cpqhp_rom_start;
-static int power_mode;
-static int debug;
+static bool power_mode;
+static bool debug;
 static int initialized;
 
 #define DRIVER_VERSION "0.9.8"
index d934dd4fa87320a6f6e8e1ac278047bc0dbcd572..5506e0e8fbc0055f354705c35bd2276419ba3917 100644 (file)
@@ -49,7 +49,7 @@
 
 int ibmphp_debug;
 
-static int debug;
+static bool debug;
 module_param(debug, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC (debug, "Debugging mode enabled or not");
 MODULE_LICENSE ("GPL");
index 6d2eea93298fbbcf31afb03cba64b262b228e313..202f4a969eb56614adf540b286844ca9f5a93832 100644 (file)
@@ -51,7 +51,7 @@
 
 
 /* local variables */
-static int debug;
+static bool debug;
 
 #define DRIVER_VERSION "0.5"
 #define DRIVER_AUTHOR  "Greg Kroah-Hartman <greg@kroah.com>, Scott Murray <scottm@somanetworks.com>"
index 9a33fdde2d1639ae5722eef34f37771d01bd6594..4b7cce1de6ec5a11372453399e1b6edcb63cfe66 100644 (file)
 
 #define MY_NAME        "pciehp"
 
-extern int pciehp_poll_mode;
+extern bool pciehp_poll_mode;
 extern int pciehp_poll_time;
-extern int pciehp_debug;
-extern int pciehp_force;
+extern bool pciehp_debug;
+extern bool pciehp_force;
 extern struct workqueue_struct *pciehp_wq;
 
 #define dbg(format, arg...)                                            \
index b8c99d35ac97af9aef83c5e46b9e9337bf7e9610..365c6b96c6421db4885d87fc4f4b5fa9ca607ab4 100644 (file)
 #include <linux/time.h>
 
 /* Global variables */
-int pciehp_debug;
-int pciehp_poll_mode;
+bool pciehp_debug;
+bool pciehp_poll_mode;
 int pciehp_poll_time;
-int pciehp_force;
+bool pciehp_force;
 struct workqueue_struct *pciehp_wq;
 
 #define DRIVER_VERSION "0.4"
index 5175d9b26f0b827f78b405b20bd04a71704a2ab7..b20ceaaa31f4854a4f50c8ebfc8fe7b1acb93e36 100644 (file)
@@ -59,7 +59,7 @@ static LIST_HEAD(slot_list);
 #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
 
 /* local variables */
-static int debug;
+static bool debug;
 static int num_slots;
 
 #define DRIVER_VERSION "0.3"
index 419919a87b0fa1d923898728964de310ae4bedb2..df5677440a0844c76a251379a6c0259a839c4027 100644 (file)
@@ -46,7 +46,7 @@
 #define PRESENT         1      /* Card in slot */
 
 #define MY_NAME "rpaphp"
-extern int rpaphp_debug;
+extern bool rpaphp_debug;
 #define dbg(format, arg...)                                    \
        do {                                                    \
                if (rpaphp_debug)                                       \
index 758adb5f47fd9cd729bb96df0c8d19f21a5bb757..127d6e6001858e4955cae3afa92689ee1ac593b6 100644 (file)
@@ -37,7 +37,7 @@
                                /* and pci_do_scan_bus */
 #include "rpaphp.h"
 
-int rpaphp_debug;
+bool rpaphp_debug;
 LIST_HEAD(rpaphp_slot_head);
 
 #define DRIVER_VERSION "0.1"
index e0c90e643b5f457e0bb600aedd298fb1b27a6f8c..ca64932e658b0c5e981c5bb746663045da9cc7ce 100644 (file)
@@ -43,9 +43,9 @@
        #define MY_NAME THIS_MODULE->name
 #endif
 
-extern int shpchp_poll_mode;
+extern bool shpchp_poll_mode;
 extern int shpchp_poll_time;
-extern int shpchp_debug;
+extern bool shpchp_debug;
 extern struct workqueue_struct *shpchp_wq;
 extern struct workqueue_struct *shpchp_ordered_wq;
 
index dd7e0c51a33e5e5f79eb9f11b444fe4667d2ba2d..7414fd9ad1d2f7f46e2cb1436570ca67e33e8568 100644 (file)
@@ -36,8 +36,8 @@
 #include "shpchp.h"
 
 /* Global variables */
-int shpchp_debug;
-int shpchp_poll_mode;
+bool shpchp_debug;
+bool shpchp_poll_mode;
 int shpchp_poll_time;
 struct workqueue_struct *shpchp_wq;
 struct workqueue_struct *shpchp_ordered_wq;
index 95489cd9a555b451fec790bf098ea279c55adda2..52229863e9fe799a2379ba9ef634837aaadc5a90 100644 (file)
@@ -28,7 +28,7 @@
 #include "aerdrv.h"
 
 /* Override the existing corrected and uncorrected error masks */
-static int aer_mask_override;
+static bool aer_mask_override;
 module_param(aer_mask_override, bool, 0);
 
 struct aer_error_inj {
index 9674e9f30d492671b94250e52dde1825eb1e3f5b..0ca053538146b92d9a80d7e306d05b52a5b3bfc3 100644 (file)
@@ -27,8 +27,8 @@
 #include <linux/kfifo.h>
 #include "aerdrv.h"
 
-static int forceload;
-static int nosourceid;
+static bool forceload;
+static bool nosourceid;
 module_param(forceload, bool, 0);
 module_param(nosourceid, bool, 0);
 
index 9dc565c615bdf3cd7117a929281a636ce3285cf4..849c0c11d2af84797ca686d6cf3f85cf3ba5de89 100644 (file)
 #include "yenta_socket.h"
 #include "i82365.h"
 
-static int disable_clkrun;
+static bool disable_clkrun;
 module_param(disable_clkrun, bool, 0444);
 MODULE_PARM_DESC(disable_clkrun, "If PC card doesn't function properly, please try this option");
 
-static int isa_probe = 1;
+static bool isa_probe = 1;
 module_param(isa_probe, bool, 0444);
 MODULE_PARM_DESC(isa_probe, "If set ISA interrupts are probed (default). Set to N to disable probing");
 
-static int pwr_irqs_off;
+static bool pwr_irqs_off;
 module_param(pwr_irqs_off, bool, 0644);
 MODULE_PARM_DESC(pwr_irqs_off, "Force IRQs off during power-on of slot. Use only when seeing IRQ storms!");
 
index 8877b836d27cf4bde02014d9a37763a3672bb4a0..d96734478324b77d28a314858fa1c889a70977b7 100644 (file)
@@ -189,7 +189,7 @@ struct compal_data{
 /* =============== */
 /* General globals */
 /* =============== */
-static int force;
+static bool force;
 module_param(force, bool, 0);
 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data");
 
index 7f88c7923fc6ab18ad8bc674da4ee96411bbf2fc..6ee0b5c909330849836c7c22dfd6713da62e25ab 100644 (file)
@@ -95,7 +95,7 @@
 #define OT_EC_BL_CONTROL_ON_DATA       0x1A
 
 
-static int force;
+static bool force;
 module_param(force, bool, 0);
 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data");
 
index f204643c5052640908063b07e0288263ca8f8548..bb5132128b339235f599969d75a692bd4099dfce 100644 (file)
@@ -89,7 +89,7 @@ static int msi_laptop_resume(struct platform_device *device);
 
 #define MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS 0x2f
 
-static int force;
+static bool force;
 module_param(force, bool, 0);
 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data");
 
index 09e26bfd464343766a3bfcff39d4b6e0a306f179..fd73ea89b857872df7526c5c756872b3b9402f64 100644 (file)
@@ -228,12 +228,12 @@ static struct platform_device *sdev;
 static struct rfkill *rfk;
 static bool has_stepping_quirk;
 
-static int force;
+static bool force;
 module_param(force, bool, 0);
 MODULE_PARM_DESC(force,
                "Disable the DMI check and forces the driver to be loaded");
 
-static int debug;
+static bool debug;
 module_param(debug, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(debug, "Debug enabled or not");
 
index 62533c105da40369d7d940b0deba4115f5f6bf7c..ea0c6075b72012458f099bfd6fb013415e7d85e1 100644 (file)
@@ -378,13 +378,13 @@ static unsigned int bright_maxlvl;        /* 0 = unknown */
 
 #ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES
 static int dbg_wlswemul;
-static int tpacpi_wlsw_emulstate;
+static bool tpacpi_wlsw_emulstate;
 static int dbg_bluetoothemul;
-static int tpacpi_bluetooth_emulstate;
+static bool tpacpi_bluetooth_emulstate;
 static int dbg_wwanemul;
-static int tpacpi_wwan_emulstate;
+static bool tpacpi_wwan_emulstate;
 static int dbg_uwbemul;
-static int tpacpi_uwb_emulstate;
+static bool tpacpi_uwb_emulstate;
 #endif
 
 
@@ -6444,7 +6444,7 @@ static struct ibm_struct brightness_driver_data = {
 
 static int alsa_index = ~((1 << (SNDRV_CARDS - 3)) - 1); /* last three slots */
 static char *alsa_id = "ThinkPadEC";
-static int alsa_enable = SNDRV_DEFAULT_ENABLE1;
+static bool alsa_enable = SNDRV_DEFAULT_ENABLE1;
 
 struct tpacpi_alsa_data {
        struct snd_card *card;
@@ -6487,7 +6487,7 @@ static enum tpacpi_volume_access_mode volume_mode =
        TPACPI_VOL_MODE_MAX;
 
 static enum tpacpi_volume_capabilities volume_capabilities;
-static int volume_control_allowed;
+static bool volume_control_allowed;
 
 /*
  * Used to syncronize writers to TP_EC_AUDIO and
@@ -7265,7 +7265,7 @@ enum fan_control_commands {
                                                 * and also watchdog cmd */
 };
 
-static int fan_control_allowed;
+static bool fan_control_allowed;
 
 static enum fan_status_access_mode fan_status_access_mode;
 static enum fan_control_access_mode fan_control_access_mode;
@@ -8437,7 +8437,7 @@ static struct proc_dir_entry *proc_dir;
  * Module and infrastructure proble, init and exit handling
  */
 
-static int force_load;
+static bool force_load;
 
 #ifdef CONFIG_THINKPAD_ACPI_DEBUG
 static const char * __init str_supported(int is_supported)
index a134c26870b0d048929fc9eb6fe07e1e7172e35c..42a4dcc25f92ae0cfacc127b6310594bda477e25 100644 (file)
@@ -82,12 +82,12 @@ struct wmi_block {
 #define ACPI_WMI_STRING      0x4       /* GUID takes & returns a string */
 #define ACPI_WMI_EVENT       0x8       /* GUID is an event */
 
-static int debug_event;
+static bool debug_event;
 module_param(debug_event, bool, 0444);
 MODULE_PARM_DESC(debug_event,
                 "Log WMI Events [0/1]");
 
-static int debug_dump_wdg;
+static bool debug_dump_wdg;
 module_param(debug_dump_wdg, bool, 0444);
 MODULE_PARM_DESC(debug_dump_wdg,
                 "Dump available WMI interfaces [0/1]");
index 545874b1df9ebfa4d14bdb2b4b04f07f274cb77e..076e211a40b7111e864d591cba0400ff7042b6ad 100644 (file)
@@ -64,7 +64,7 @@ static unsigned int cache_time = 1000;
 module_param(cache_time, uint, 0644);
 MODULE_PARM_DESC(cache_time, "cache time in milliseconds");
 
-static unsigned int pmod_enabled;
+static bool pmod_enabled;
 module_param(pmod_enabled, bool, 0644);
 MODULE_PARM_DESC(pmod_enabled, "PMOD enable bit");
 
index e5cb9248a442a5d67f574302aa76aa8904d1812a..f3b8bb84faf295013c03c1d4e539ee967015fa2a 100644 (file)
@@ -75,7 +75,7 @@ static LIST_HEAD(raw3270_devices);
 static int raw3270_registered;
 
 /* Module parameters */
-static int tubxcorrect = 0;
+static bool tubxcorrect = 0;
 module_param(tubxcorrect, bool, 0);
 
 /*
index 11312f401c704823832060fc93019a0c061e20d7..2211277a10793201936b3c7253958149972723ec 100644 (file)
@@ -28,9 +28,9 @@
 #define MAX_CMDLEN 240
 #define MIN_INTERVAL 15
 static char vmwdt_cmd[MAX_CMDLEN] = "IPL";
-static int vmwdt_conceal;
+static bool vmwdt_conceal;
 
-static int vmwdt_nowayout = WATCHDOG_NOWAYOUT;
+static bool vmwdt_nowayout = WATCHDOG_NOWAYOUT;
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>");
index 195823a51aab5292e6ec43183d0e0829b6d9ff93..ed119cedaae008354128e6a2cbe9fc129ad736b2 100644 (file)
@@ -102,7 +102,7 @@ static int setup_dmaspeed[MAXBOARDS] __initdata = { -1, -1, -1, -1 };
  */
 
 #if defined(MODULE)
-static int isapnp = 0;
+static bool isapnp = 0;
 static int aha1542[] = {0x330, 11, 4, -1};
 module_param_array(aha1542, int, NULL, 0);
 module_param(isapnp, bool, 0);
index f5b718d3c31be53f860912ce9f833f4534190ffb..13aeca3d51f24919ddf10406e941fd04b25c00bc 100644 (file)
@@ -546,7 +546,7 @@ static struct ParameterData __devinitdata cfg_data[] = {
  * command line overrides will be used. If set to 1 then safe and
  * slow settings will be used.
  */
-static int use_safe_settings = 0;
+static bool use_safe_settings = 0;
 module_param_named(safe, use_safe_settings, bool, 0);
 MODULE_PARM_DESC(safe, "Use safe and slow settings only. Default: false");
 
index f6a50c98c36fa46f15ef82474d55fd633efbaf36..002924963cd89aa0af5e4588ae2827aefed95b2b 100644 (file)
@@ -59,11 +59,11 @@ MODULE_PARM_DESC(trans_mode, "transfer mode (0: BIOS(default) 1: Async 2: Ultra2
 #define ASYNC_MODE    1
 #define ULTRA20M_MODE 2
 
-static int       auto_param = 0;       /* default: ON */
+static bool      auto_param = 0;       /* default: ON */
 module_param     (auto_param, bool, 0);
 MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)");
 
-static int       disc_priv  = 1;       /* default: OFF */
+static bool      disc_priv  = 1;       /* default: OFF */
 module_param     (disc_priv, bool, 0);
 MODULE_PARM_DESC(disc_priv,  "disconnection privilege mode (0: ON 1: OFF(default))");
 
index ca86721a71b94730b995b99a7c3e7aded4b1951f..b61a753eb8960c19659a53fc18cf35d35c2e70f1 100644 (file)
@@ -70,7 +70,7 @@ module_param(nsp_burst_mode, int, 0);
 MODULE_PARM_DESC(nsp_burst_mode, "Burst transfer mode (0=io8, 1=io32, 2=mem32(default))");
 
 /* Release IO ports after configuration? */
-static int       free_ports = 0;
+static bool       free_ports = 0;
 module_param(free_ports, bool, 0);
 MODULE_PARM_DESC(free_ports, "Release IO ports after configuration? (default: 0 (=no))");
 
index 0d18d80bcd25ce9c5f6acd1dec213cd7a76c4498..9bcf87ae4c008eab0b1e93dcec65e67b6a9f3ea9 100644 (file)
@@ -61,7 +61,7 @@ EXPORT_SYMBOL(comedi_debug);
 module_param(comedi_debug, int, 0644);
 #endif
 
-int comedi_autoconfig = 1;
+bool comedi_autoconfig = 1;
 module_param(comedi_autoconfig, bool, 0444);
 
 static int comedi_num_legacy_minors;
index da4b4f5553f590c0f7a07f80993e7f35626636c0..006cf14c577a041e4c7768b1bcb364a53158d091 100644 (file)
@@ -1,10 +1,11 @@
 
 #ifndef _COMEDI_FOPS_H
 #define _COMEDI_FOPS_H
+#include <linux/types.h>
 
 extern struct class *comedi_class;
 extern const struct file_operations comedi_fops;
-extern int comedi_autoconfig;
+extern bool comedi_autoconfig;
 extern struct comedi_driver *comedi_drivers;
 
 #endif /* _COMEDI_FOPS_H */
index deac938d850535b367cf35d0f5a3c195b5faa96c..d071c838ac2a3b7ce1fff2574fca926dcadcdea7 100644 (file)
@@ -38,7 +38,7 @@
 
 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);
index c5a0d27a02dca0a0881d3e4551e97716fa73b898..4d20e9f741187460dee46dc23707d9f86882744a 100644 (file)
@@ -53,7 +53,7 @@ static unsigned char do_get_bits(void);
 
 #define DRIVER_NAME "lirc_bt829"
 
-static int debug;
+static bool debug;
 #define dprintk(fmt, args...)                                           \
        do {                                                             \
                if (debug)                                               \
index 6cd4cd67a1ddcf1b6f7252fc0973e4b6030598eb..7a25017766790598f88622aa57e776581a505ea7 100644 (file)
@@ -62,9 +62,9 @@
 
 /* debugging support */
 #ifdef CONFIG_USB_DEBUG
-static int debug = 1;
+static bool debug = 1;
 #else
-static int debug;
+static bool debug;
 #endif
 
 #define dprintk(fmt, args...)                                  \
index 02b07a6c1771e141ceb5601908c3345f9a11f9b1..dd2bca7b56faf4b09afa5f3f6a1207d940507f6a 100644 (file)
@@ -63,8 +63,8 @@
 
 /*** Global Variables ***/
 
-static int debug;
-static int check_pselecd;
+static bool debug;
+static bool check_pselecd;
 
 unsigned int irq = LIRC_IRQ;
 unsigned int io = LIRC_PORT;
index 8a060a8a7224fbcb1dbe72eb6e0a89d8e6ef9d78..2aac67c98283a60757137e7f67dea2d7801d79ad 100644 (file)
@@ -107,13 +107,13 @@ struct lirc_serial {
 static int type;
 static int io;
 static int irq;
-static int iommap;
+static bool iommap;
 static int ioshift;
-static int softcarrier = 1;
-static int share_irq;
-static int debug;
+static bool softcarrier = 1;
+static bool share_irq;
+static bool debug;
 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */
-static int txsense;    /* 0 = active high, 1 = active low */
+static bool txsense;   /* 0 = active high, 1 = active low */
 
 #define dprintk(fmt, args...)                                  \
        do {                                                    \
index 6903d3992eca02e48f541f90fbca57bb567dbf02..c94382b917aca0b49057b8c3b57ad0e1166b327f 100644 (file)
@@ -173,7 +173,7 @@ static DEFINE_SPINLOCK(hardware_lock);
 static int rx_buf[RBUF_LEN];
 static unsigned int rx_tail, rx_head;
 
-static int debug;
+static bool debug;
 #define dprintk(fmt, args...)                                          \
        do {                                                            \
                if (debug)                                              \
index 0302d82a12f79b7595d74604a826febff08377a6..76ea4a8f2c751a865bce422d50da43dbf940880c 100644 (file)
@@ -155,8 +155,8 @@ static struct mutex tx_data_lock;
 #define zilog_info(s, args...) printk(KERN_INFO KBUILD_MODNAME ": " s, ## args)
 
 /* module parameters */
-static int debug;      /* debug output */
-static int tx_only;    /* only handle the IR Tx function */
+static bool debug;     /* debug output */
+static bool tx_only;   /* only handle the IR Tx function */
 static int minor = -1; /* minor number */
 
 #define dprintk(fmt, args...)                                          \
index 02fafecd47738a23dc9bf40de76e59b374653e4b..897a3a99c794466ef636a1691f15ffeb719579b8 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/usb/serial.h>
 #include <linux/uaccess.h>
 
-static int debug;
+static bool debug;
 
 /* Version Information */
 #define DRIVER_VERSION "v2.00"
index c44e41af28809ae0e7963e4a2c264c281053b7ff..1c5780f1571b3defb1b8b6d49245de70bf0fdeea 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/usb/serial.h>
 #include <linux/uaccess.h>
 
-static int debug;
+static bool debug;
 
 /* Version Information */
 #define DRIVER_VERSION "v2.14"
index 412b87947f667e3bd7e530a0c607b8894107b551..e66579e6147a5faa063ca0b0d74204b20e7de2a0 100644 (file)
@@ -116,7 +116,7 @@ extern int bleep_time, bell_pos;
 extern int spell_delay, key_echo;
 extern short punc_mask;
 extern short pitch_shift, synth_flags;
-extern int quiet_boot;
+extern bool quiet_boot;
 extern char *synth_name;
 extern struct bleep unprocessed_sound;
 
index c241074a4b5e7104c3516928851a4e3ca9e39d1a..2222d6919ef58d820afbee1ef4ab97307771527d 100644 (file)
@@ -22,7 +22,7 @@ static struct spk_synth *synths[MAXSYNTHS];
 struct spk_synth *synth;
 char pitch_buff[32] = "";
 static int module_status;
-int quiet_boot;
+bool quiet_boot;
 
 struct speakup_info_t speakup_info = {
        .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock),
index 08a449b4abf9d11f694feb2bcb5b176ca8f39e35..f50582169b244caf21d0b9aede30b125b951b142 100644 (file)
@@ -41,7 +41,7 @@ static void __exit tsi148_exit(void);
 
 
 /* Module parameter */
-static int err_chk;
+static bool err_chk;
 static int geoid;
 
 static const char driver_name[] = "vme_tsi148";
index 6a1241c7f841762dceb4d564305ffffe1bddc69a..de88aa5566e5eeb5176ebc910b2a1d37cb055637 100644 (file)
@@ -118,7 +118,7 @@ static unsigned long board2;
 static unsigned long board3;
 static unsigned long board4;
 static unsigned long controller;
-static int support_low_speed;
+static bool support_low_speed;
 static unsigned long modem1;
 static unsigned long modem2;
 static unsigned long modem3;
index e67fb20490d257ddf02a4df8811daf98d0760264..ff8017f87914ce777a7d3ec5a0ab7abf8c9f0785 100644 (file)
@@ -850,7 +850,7 @@ static int mgsl_device_count;
  * .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;
+static bool break_on_load;
 
 /*
  * Driver major number, defaults to zero to get auto
index 0f6b796c95c55015442f9ac1b02ecd89673527f6..a7efe538df000e3c005717cd464ae4ed6a80d538 100644 (file)
@@ -456,7 +456,7 @@ static int synclinkmp_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
index b42092e1f1643c580bc09414111867279926b840..98dd9e49b684be5ef56b2960b52bc031a536331f 100644 (file)
@@ -73,9 +73,9 @@ static const char speedtch_driver_name[] = "speedtch";
 #define DEFAULT_SW_BUFFERING   0
 
 static unsigned int altsetting = 0; /* zero means: use the default */
-static int dl_512_first = DEFAULT_DL_512_FIRST;
-static int enable_isoc = DEFAULT_ENABLE_ISOC;
-static int sw_buffering = DEFAULT_SW_BUFFERING;
+static bool dl_512_first = DEFAULT_DL_512_FIRST;
+static bool enable_isoc = DEFAULT_ENABLE_ISOC;
+static bool sw_buffering = DEFAULT_SW_BUFFERING;
 
 #define DEFAULT_B_MAX_DSL      8128
 #define DEFAULT_MODEM_MODE     11
index 00f171a7a8a01f91f5d58ebc4d1e51851e3e5b55..01ea5d7421d47a5c02c5993b30802345cf0c11fe 100644 (file)
@@ -542,7 +542,7 @@ static int modem_index;
 static unsigned int debug;
 static unsigned int altsetting[NB_MODEM] = {
                                [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF};
-static int sync_wait[NB_MODEM];
+static bool sync_wait[NB_MODEM];
 static char *cmv_file[NB_MODEM];
 static int annex[NB_MODEM];
 
index 3af5e2dd1d82743b1a6d92786401caab7fc8989c..8df4b76465ac7d0b5eb0617b6ca2b6d7aec70c06 100644 (file)
@@ -93,7 +93,7 @@ struct async {
        u8 bulk_status;
 };
 
-static int usbfs_snoop;
+static bool usbfs_snoop;
 module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic");
 
index 79d339e2e700589b0f91c6b2935ba09989dd1ff5..a0613d8f9be785bf0a52827acf2522b109bce1b2 100644 (file)
@@ -102,7 +102,7 @@ static DECLARE_WAIT_QUEUE_HEAD(khubd_wait);
 static struct task_struct *khubd_task;
 
 /* cycle leds on hubs that aren't blinking for attention */
-static int blinkenlights = 0;
+static bool blinkenlights = 0;
 module_param (blinkenlights, bool, S_IRUGO);
 MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs");
 
@@ -131,12 +131,12 @@ MODULE_PARM_DESC(initial_descriptor_timeout,
  * otherwise the new scheme is used.  If that fails and "use_both_schemes"
  * is set, then the driver will make another attempt, using the other scheme.
  */
-static int old_scheme_first = 0;
+static bool old_scheme_first = 0;
 module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(old_scheme_first,
                 "start with the old device initialization scheme");
 
-static int use_both_schemes = 1;
+static bool use_both_schemes = 1;
 module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(use_both_schemes,
                "try the other device initialization scheme if the "
@@ -2026,7 +2026,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub)
 #define SET_ADDRESS_TRIES      2
 #define GET_DESCRIPTOR_TRIES   2
 #define SET_CONFIG_TRIES       (2 * (use_both_schemes + 1))
-#define USE_NEW_SCHEME(i)      ((i) / 2 == old_scheme_first)
+#define USE_NEW_SCHEME(i)      ((i) / 2 == (int)old_scheme_first)
 
 #define HUB_ROOT_RESET_TIME    50      /* times are in msec */
 #define HUB_SHORT_RESET_TIME   10
index 1382c90d0834859c946c272d93859b4b1185a96c..8ca9f994a280c625096f8f227d830cb5af6febad 100644 (file)
@@ -47,7 +47,7 @@
 
 const char *usbcore_name = "usbcore";
 
-static int nousb;      /* Disable USB when built into kernel image */
+static bool nousb;     /* Disable USB when built into kernel image */
 
 #ifdef CONFIG_USB_SUSPEND
 static int usb_autosuspend_delay = 2;          /* Default delay value,
index e9a2c5c44454f18eb89a1608dccaee0136ba9f1a..c16ff55a74e84696ec26afe376547c5af42a9dd8 100644 (file)
@@ -152,15 +152,15 @@ static const char *ep_string[] = {
 };
 
 /* DMA usage flag */
-static int use_dma = 1;
+static bool use_dma = 1;
 /* packet per buffer dma */
-static int use_dma_ppb = 1;
+static bool use_dma_ppb = 1;
 /* with per descr. update */
-static int use_dma_ppb_du;
+static bool use_dma_ppb_du;
 /* buffer fill mode */
 static int use_dma_bufferfill_mode;
 /* full speed only mode */
-static int use_fullspeed;
+static bool use_fullspeed;
 /* tx buffer size for high speed */
 static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE;
 
index 0cd764d59351e3331b8f25ee5a6399f0dace245a..a28f6ffcd0f31683d701bfd527ba1c110c92be4a 100644 (file)
@@ -250,9 +250,9 @@ static struct usb_configuration rndis_config_driver = {
 /*-------------------------------------------------------------------------*/
 
 #ifdef CONFIG_USB_ETH_EEM
-static int use_eem = 1;
+static bool use_eem = 1;
 #else
-static int use_eem;
+static bool use_eem;
 #endif
 module_param(use_eem, bool, 0);
 MODULE_PARM_DESC(use_eem, "use CDC EEM mode");
index e0f30fc70e45b8e787f46b86fd91e75415052fe6..47766f0e7caa320796f7894d8144a3933ff1393f 100644 (file)
@@ -303,16 +303,16 @@ MODULE_LICENSE("Dual BSD/GPL");
 static struct {
        char            *file[FSG_MAX_LUNS];
        char            *serial;
-       int             ro[FSG_MAX_LUNS];
-       int             nofua[FSG_MAX_LUNS];
+       bool            ro[FSG_MAX_LUNS];
+       bool            nofua[FSG_MAX_LUNS];
        unsigned int    num_filenames;
        unsigned int    num_ros;
        unsigned int    num_nofuas;
        unsigned int    nluns;
 
-       int             removable;
-       int             can_stall;
-       int             cdrom;
+       bool            removable;
+       bool            can_stall;
+       bool            cdrom;
 
        char            *transport_parm;
        char            *protocol_parm;
index 4c81d540bc2696529a2c4a090ab0ed86037fbecd..7322d293213e142e2f469d6366eceaa5c32b4017 100644 (file)
@@ -69,7 +69,7 @@ static const char * const ep_name[] = {
  *
  * If use_dma is disabled, pio will be used instead.
  */
-static int use_dma = 0;
+static bool use_dma = 0;
 module_param(use_dma, bool, 0644);
 
 /*
index cf1f36454d0860fee87933281bb1e5cfaed168b2..cdedd1336745ae5d1a822a1dbbad25d410d54f27 100644 (file)
@@ -90,8 +90,8 @@ static const char *const ep_name [] = {
  * Some gadget drivers work better with the dma support here than others.
  * These two parameters let you use PIO or more aggressive DMA.
  */
-static int use_dma = 1;
-static int use_dma_chaining = 0;
+static bool use_dma = 1;
+static bool use_dma_chaining = 0;
 
 /* "modprobe net2280 use_dma=n" etc */
 module_param (use_dma, bool, S_IRUGO);
@@ -112,7 +112,7 @@ module_param (fifo_mode, ushort, 0644);
  * USB suspend requests will be ignored.  This is acceptable for
  * self-powered devices
  */
-static int enable_suspend = 0;
+static bool enable_suspend = 0;
 
 /* "modprobe net2280 enable_suspend=1" etc */
 module_param (enable_suspend, bool, S_IRUGO);
index 7db5bbe6251b2f02422af9dc48225ede0714b881..576cd8578b452eac99a1bd15cdb81031c34da090 100644 (file)
@@ -98,7 +98,7 @@ module_param (fifo_mode, uint, 0);
 MODULE_PARM_DESC (fifo_mode, "endpoint configuration");
 
 #ifdef USE_DMA
-static unsigned use_dma = 1;
+static bool use_dma = 1;
 
 /* "modprobe omap_udc use_dma=y", or else as a kernel
  * boot parameter "omap_udc:use_dma=y"
index dd2313cce1d35b8d5db8d67903db41202f7fff71..a3fcaae4bc2ade69ec74838f3596ecb8e00faa38 100644 (file)
@@ -359,7 +359,7 @@ struct pch_udc_dev {
 static const char      ep0_string[] = "ep0in";
 static DEFINE_SPINLOCK(udc_stall_spinlock);    /* stall spin lock */
 struct pch_udc_dev *pch_udc;           /* pointer to device object */
-static int speed_fs;
+static bool speed_fs;
 module_param_named(speed_fs, speed_fs, bool, S_IRUGO);
 MODULE_PARM_DESC(speed_fs, "true for Full speed operation");
 
index ed1b816e58d86291ecd81e6163f9c7bf5a3409d0..ad9e5b2df64267d9b18af3b770351a04069dd0e1 100644 (file)
@@ -123,11 +123,11 @@ MODULE_AUTHOR("Al Borchers");
 MODULE_AUTHOR("David Brownell");
 MODULE_LICENSE("GPL");
 
-static int use_acm = true;
+static bool use_acm = true;
 module_param(use_acm, bool, 0);
 MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes");
 
-static int use_obex = false;
+static bool use_obex = false;
 module_param(use_obex, bool, 0);
 MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no");
 
index 20697cc132d1bdbcb7c24e75f160e675123b2321..31d34832907e44e48f91e7a937e2a18df556f3f9 100644 (file)
@@ -81,7 +81,7 @@ module_param(buflen, uint, 0);
  * work better with hosts where config changes are problematic or
  * controllers (like original superh) that only support one config.
  */
-static int loopdefault = 0;
+static bool loopdefault = 0;
 module_param(loopdefault, bool, S_IRUGO|S_IWUSR);
 
 /*-------------------------------------------------------------------------*/
index e311a511529babe7f4da7f67c8bd5dc988deee6c..a007a9fe0f874a3bbb8ba2c63e37e7d2e0de1ac5 100644 (file)
@@ -112,7 +112,7 @@ module_param (park, uint, S_IRUGO);
 MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets");
 
 /* for flakey hardware, ignore overcurrent indicators */
-static int ignore_oc = 0;
+static bool ignore_oc = 0;
 module_param (ignore_oc, bool, S_IRUGO);
 MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications");
 
index 5f5a63241436ce70c90ca00434b666ce89731428..34b9edd866513fe93577444cc82e9327d33e0b06 100644 (file)
@@ -115,13 +115,13 @@ static inline void sb800_prefetch(struct ohci_hcd *ohci, int on)
 
 
 /* Some boards misreport power switching/overcurrent */
-static int distrust_firmware = 1;
+static bool distrust_firmware = 1;
 module_param (distrust_firmware, bool, 0);
 MODULE_PARM_DESC (distrust_firmware,
        "true to distrust firmware power/overcurrent setup");
 
 /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */
-static int no_handshake = 0;
+static bool no_handshake = 0;
 module_param (no_handshake, bool, 0);
 MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake");
 
index 6f62de5c6e352a9cd5dad5baaf7b4f20a894a926..015c7c62ed49eb4879257e1bb393dce079c59e81 100644 (file)
@@ -233,7 +233,7 @@ module_param(park, uint, S_IRUGO);
 MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets");
 
 /* For flakey hardware, ignore overcurrent indicators */
-static int ignore_oc;
+static bool ignore_oc;
 module_param(ignore_oc, bool, S_IRUGO);
 MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications");
 
index 533d12cca371db9c122033f18aeb346f242b4589..16dd6a6abf007ced8c0be9204350a865318c50e8 100644 (file)
@@ -74,7 +74,7 @@ MODULE_LICENSE("GPL");
 #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444)
 INT_MODULE_PARM(testing, 0);
 /* Some boards misreport power switching/overcurrent*/
-static int distrust_firmware = 1;
+static bool distrust_firmware = 1;
 module_param(distrust_firmware, bool, 0);
 MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren"
        "t setup");
index c8ae199cfbb883178f74ccceffbd2cea468bd2fd..6b5eb1017e2ca601044e3d1856d87070b0d21328 100644 (file)
@@ -59,7 +59,7 @@
 #define DRIVER_DESC "USB Universal Host Controller Interface driver"
 
 /* for flakey hardware, ignore overcurrent indicators */
-static int ignore_oc;
+static bool ignore_oc;
 module_param(ignore_oc, bool, S_IRUGO);
 MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications");
 
index 2dbe600fbc1137bda53ecfae1a4468061f4a30ba..a4a3c7cd4a11c751b0be3d71d9040ea5ae22ea0f 100644 (file)
@@ -53,7 +53,7 @@ MODULE_AUTHOR("Tony Olech");
 MODULE_DESCRIPTION("FTDI ELAN driver");
 MODULE_LICENSE("GPL");
 #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444)
-static int distrust_firmware = 1;
+static bool distrust_firmware = 1;
 module_param(distrust_firmware, bool, 0);
 MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren"
         "t setup");
index 2453a39b4794be15441deaf0763fef08cbf4571f..4fd0dc835ae566e1a115e363c23e5e3ccba5ef0e 100644 (file)
@@ -62,7 +62,7 @@ MODULE_LICENSE("GPL");
 
 /* Module parameters */
 static DEFINE_MUTEX(iowarrior_mutex);
-static int debug = 0;
+static bool debug = 0;
 module_param(debug, bool, 0644);
 MODULE_PARM_DESC(debug, "debug=1 enables debugging messages");
 
index 53be7aef6308fcb991aa3f2a04c8b9c3a74731ad..66bc376005d250f09cee76ea804f9ad8e5a48751 100644 (file)
@@ -750,7 +750,7 @@ cppi_next_tx_segment(struct musb *musb, struct cppi_channel *tx)
  * So this module parameter lets the heuristic be disabled.  When using
  * gadgetfs, the heuristic will probably need to be disabled.
  */
-static int cppi_rx_rndis = 1;
+static bool cppi_rx_rndis = 1;
 
 module_param(cppi_rx_rndis, bool, 0);
 MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic");
index f6ff7923048b1072c5790cfab5ffb1fb39d8e444..56cf0243979e504df48742f447dd1e6c977ab924 100644 (file)
@@ -1586,7 +1586,7 @@ irqreturn_t musb_interrupt(struct musb *musb)
 EXPORT_SYMBOL_GPL(musb_interrupt);
 
 #ifndef CONFIG_MUSB_PIO_ONLY
-static int __initdata use_dma = 1;
+static bool __initdata use_dma = 1;
 
 /* "modprobe ... use_dma=0" etc */
 module_param(use_dma, bool, 0);
index b43d07df4c44ac3c38d0b31997389669a6943613..123bf9155339c88ff8c0e428c323b08238dbe10b 100644 (file)
@@ -52,7 +52,7 @@
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
-static int debug;
+static bool debug;
 
 /* Vendor and Product ID */
 #define AIRCABLE_VID           0x16CA
index 18e875b92e001d1c290f2b95e498eea77c6b72cb..69328dcfd91ada46bbe4c5bbc43cbd212c72cc11 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 
-static int debug;
+static bool debug;
 /*
  * Version information
  */
index f9f29b289f2f076b407f83579e7e7ec6220d0688..29ffeb6279c7cd80cba7cdd46de9671085055d1a 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/usb/serial.h>
 #include "belkin_sa.h"
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index 0e77511060c0795680941dc784753f58888ec014..5e53cc59e652c406926fc6a5f37fe8e86c975a04 100644 (file)
@@ -70,7 +70,7 @@
 #define CH341_NBREAK_BITS_REG2 0x40
 
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x4348, 0x5523) },
index adfe660ed008f00061e75d85b159f95ac766523c..fba1147ed9169c1711027a693fcb8df5788aa031 100644 (file)
@@ -49,7 +49,7 @@ static void cp210x_break_ctl(struct tty_struct *, int);
 static int cp210x_startup(struct usb_serial *);
 static void cp210x_dtr_rts(struct usb_serial_port *p, int on);
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */
index 98bf83349838acdb1a98bb5e2a1861aef495e13f..6bc3802a581af7f43239869864146e69bc20c3e4 100644 (file)
@@ -43,7 +43,7 @@
 
 #define CYBERJACK_LOCAL_BUF_SIZE 32
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index 07680d6b792b59ebff8143f851837659e3ae51dc..3bdeafa29c24d43c11ac71375c5eb93b6916a18d 100644 (file)
 #include "cypress_m8.h"
 
 
-static int debug;
-static int stats;
+static bool debug;
+static bool stats;
 static int interval;
-static int unstable_bauds;
+static bool unstable_bauds;
 
 /*
  * Version Information
index 6d26a77d0f2aedf0302696b48e5c399f44203749..b23bebd721a1f8e511a386b7667827afc8ebaa3e 100644 (file)
@@ -251,7 +251,7 @@ static int digi_read_oob_callback(struct urb *urb);
 
 /* Statics */
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table_combined[] = {
        { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) },
index 504b5585ea4500bbea780b520cff4df748fd089b..aced6817bf95dc42d0a6c9be7b50db2552a75be0 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index c290df97108e944858b97ee62ca445f42e38aaf9..01b6404df395bd3c2a042c2f8c92b15b0905f6bd 100644 (file)
@@ -55,7 +55,7 @@
 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>"
 #define DRIVER_DESC "USB FTDI Serial Converters Driver"
 
-static int debug;
+static bool debug;
 static __u16 vendor = FTDI_VID;
 static __u16 product;
 
index e21ce9ddfc631d824e38e9e27dd1e053a2677a11..5d4b099dcf8b5da5998e6aebaf67ccbff077db50 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/usb/serial.h>
 #include <linux/uaccess.h>
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x1404, 0xcddc) },
index bf12565f8e87319ff82e6861ef9ef821677ef7ea..21343378c322e1ab3fd044a8f5ccdbefab43bede 100644 (file)
@@ -42,7 +42,7 @@
 static int initial_mode = 1;
 
 /* debug flag */
-static int debug;
+static bool debug;
 
 #define GARMIN_VENDOR_ID             0x091E
 
index abd2ee2b2f9942c2cdf35f1e29f0a5e83ed08b26..0497575e4799fd73fe65903dfea799ffce034518 100644 (file)
@@ -191,7 +191,7 @@ static const struct divisor_table_entry divisor_table[] = {
 };
 
 /* local variables */
-static int debug;
+static bool debug;
 
 static atomic_t CmdUrbs;       /* Number of outstanding Command Write Urbs */
 
index e44d375edaad2a785eacd7eabcfbba5d03cc26e3..65bf06aa591a091616b084943388194209b913a6 100644 (file)
@@ -210,10 +210,10 @@ static unsigned char OperationalMajorVersion;
 static unsigned char OperationalMinorVersion;
 static unsigned short OperationalBuildNumber;
 
-static int debug;
+static bool debug;
 
 static int closing_wait = EDGE_CLOSING_WAIT;
-static int ignore_cpu_rev;
+static bool ignore_cpu_rev;
 static int default_uart_mode;          /* RS232 */
 
 static void edge_tty_recv(struct device *dev, struct tty_struct *tty,
index 36f5cbe90485593aa0641d3e669ceb52fbe3bcd6..06053a920dd8dc829e1c6dc9ac6d5693f5d32643 100644 (file)
@@ -34,7 +34,7 @@
 #define DRIVER_DESC "USB PocketPC PDA driver"
 
 static __u16 product, vendor;
-static int debug;
+static bool debug;
 static int connect_retries = KP_RETRIES;
 static int initial_wait;
 
index 5170799d6e94739cffb66f3266254d900fd322f8..6f9356f3f99eb0838a610a95ee013efcfce1e7c7 100644 (file)
@@ -147,7 +147,7 @@ static struct usb_driver usb_ipw_driver = {
        .no_dynamic_id =        1,
 };
 
-static int debug;
+static bool debug;
 
 static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port)
 {
index 0c537da0d3cda83d5b2bd655857a53fe803aa8ce..84a396e83671bdeca4de7ece00ac007020f418f4 100644 (file)
@@ -45,7 +45,7 @@
 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>"
 #define DRIVER_DESC "USB IR Dongle driver"
 
-static int debug;
+static bool debug;
 
 /* if overridden by the user, then use their value for the size of the read and
  * write urbs */
index 64d0ffd4440b948a8f4aeb6e31e5b450403249a6..3077a443697601ed6e2040964f1d2c093aee1b04 100644 (file)
@@ -34,9 +34,9 @@
 
 
 #ifdef CONFIG_USB_SERIAL_DEBUG
-static int debug = 1;
+static bool debug = 1;
 #else
-static int debug;
+static bool debug;
 #endif
 
 /*
@@ -65,7 +65,7 @@ static int clockmode = 1;
 static int cdmode = 1;
 static int iuu_cardin;
 static int iuu_cardout;
-static int xmas;
+static bool xmas;
 static int vcc_default = 5;
 
 static void read_rxcmd_callback(struct urb *urb);
index bc8dc203e818342b270104717d0133e38ef6cf8e..4cc36c76180126f80a9d81e23759318971873599 100644 (file)
@@ -45,7 +45,7 @@
 #include <linux/usb/serial.h>
 #include "keyspan.h"
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index a40615674a6815e20ed44a7bbba1953943c176ea..7c62a7048302c78fca45a19c5e2a67feb3109415 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
-static int debug;
+static bool debug;
 
 /* make a simple define to handle if we are compiling keyspan_pda or xircom support */
 #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE)
index 19373cb7c5bfbe800c0a19bc5aa6be38f60386ae..fc064e1442ca988ae3330388cb4d855f023f1595 100644 (file)
@@ -49,7 +49,7 @@
 #include <linux/usb/serial.h>
 #include "kl5kusb105.h"
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index a975bb80303f9ddad9b6ef62394a1d2889fcbf5a..27fa9c8a77b0745b7ccae628778d1b44ba9f41a7 100644 (file)
@@ -45,7 +45,7 @@
 #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>"
 #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver"
 
-static int debug;
+static bool debug;
 
 /*
  * Function prototypes
index 19d112f51b97516b325d07c984a7e71f03e7d665..4554ee49e635d5d4c3d283caf983555630d1b84c 100644 (file)
@@ -71,7 +71,7 @@ struct moschip_port {
        struct urb              *write_urb_pool[NUM_URBS];
 };
 
-static int debug;
+static bool debug;
 
 static struct usb_serial_driver moschip7720_2port_driver;
 
index 55cfd6265b98b7d91afb6bc1d9c91ad7245256db..03b5e249e95e1620b452cd4a000cc6ab8a8de0a8 100644 (file)
@@ -263,7 +263,7 @@ struct moschip_port {
 };
 
 
-static int debug;
+static bool debug;
 
 /*
  * mos7840_set_reg_sync
index 1f00f243c26cf5e1825632e40fc9c2a60287f9e3..b28f1db0195f8aafaf6f981c95bcdf6d3639e998 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */
index 45a8c55881d348cb52747c9c241d6573c17f0fc3..8b8d58a2ac12ad54f3e517298a68e18f9cdb6a24 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
-static int debug;
+static bool debug;
 
 /*
  * Version Information
index 691f57a9d712a4b45e44137d9539595fdff83471..262ded9e076b8d91f9d145a704b0160edf396643 100644 (file)
@@ -32,7 +32,7 @@
  * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */
 #define DRIVER_DESC    "Opticon USB barcode to serial driver (1D)"
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x065a, 0x0009) },
index c96b6b6509fb16e8a697fc9b7e3efbac47c85eb6..420d9857394a090a6bf1aae5d9ef86541585dd4d 100644 (file)
@@ -1234,7 +1234,7 @@ static struct usb_serial_driver option_1port_device = {
 #endif
 };
 
-static int debug;
+static bool debug;
 
 /* per port private data */
 
index 2161d1c3c089fa7d841ad516d06c5a1dd03f97f9..e287fd32682c2794f2ce664d159bdd120db22a9d 100644 (file)
@@ -74,7 +74,7 @@ static struct usb_driver oti6858_driver = {
        .no_dynamic_id =        1,
 };
 
-static int debug;
+static bool debug;
 
 /* requests */
 #define        OTI6858_REQ_GET_STATUS          (USB_DIR_IN | USB_TYPE_VENDOR | 0x00)
index 329295615d0634a86e9a10affe06ae52020e4949..3d8cda57ce7ac51ea9a3cf9aec600b55f80c8562 100644 (file)
@@ -36,7 +36,7 @@
  */
 #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver"
 
-static int debug;
+static bool debug;
 
 #define PL2303_CLOSING_WAIT    (30*HZ)
 
index aa9367f5b42143b0db23035a879355448a605528..1d5deee3be52211d10c6cc02edb7f121efc57541 100644 (file)
@@ -22,7 +22,7 @@
 #define DRIVER_AUTHOR "Qualcomm Inc"
 #define DRIVER_DESC "Qualcomm USB Serial driver"
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        {USB_DEVICE(0x05c6, 0x9211)},   /* Acer Gobi QDL device */
index a36e2313eed0ecadd8d54b056903be2a92409a0a..d074b3740dcb8323d7b4f506c91adad21d24e354 100644 (file)
@@ -81,9 +81,9 @@
 #define CONFIG_USB_SERIAL_SAFE_PADDED 0
 #endif
 
-static int debug;
-static int safe = 1;
-static int padded = CONFIG_USB_SERIAL_SAFE_PADDED;
+static bool debug;
+static bool safe = 1;
+static bool padded = CONFIG_USB_SERIAL_SAFE_PADDED;
 
 #define DRIVER_VERSION "v0.1"
 #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>"
index f2485429172faada3be3932990669e5991628afd..fdae0a4407cb7b9ddbc0068e4ef2690ba4bbfcf8 100644 (file)
@@ -46,8 +46,8 @@
    allocations > PAGE_SIZE and the number of packets in a page
    is an integer 512 is the largest possible packet on EHCI */
 
-static int debug;
-static int nmea;
+static bool debug;
+static bool nmea;
 
 /* Used in interface blacklisting */
 struct sierra_iface_info {
index 180ea6c7911ce4348adc8f06b30d6fee9d4ae282..d7f5eee18f0010bc7685aef9a6ec9e848277b14e 100644 (file)
@@ -33,7 +33,7 @@
 #define DRIVER_VERSION "v0.10"
 #define DRIVER_DESC    "SPCP8x5 USB to serial adaptor driver"
 
-static int debug;
+static bool debug;
 
 #define SPCP8x5_007_VID                0x04FC
 #define SPCP8x5_007_PID                0x0201
index 87362e48796e2662b82533b34f894ec9c08e966b..7697858d8858abefb181e9f139a17c17b6240890 100644 (file)
@@ -46,7 +46,7 @@
 #define FULLPWRBIT          0x00000080
 #define NEXT_BOARD_POWER_BIT        0x00000004
 
-static int debug;
+static bool debug;
 
 /* Version Information */
 #define DRIVER_VERSION "v0.1"
index c70cc012d03f2e7b82724bcc6a58423e78fb12b2..50651cf4fc613bc8ab0e89de48755361d50e9936 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/usb/serial.h>
 #include <linux/uaccess.h>
 
-static int debug;
+static bool debug;
 
 static const struct usb_device_id id_table[] = {
        { USB_DEVICE(0x05e0, 0x0600) },
index 4af21f46096e564fcfe767c327aab0378a0c845d..8468eb769a2919d38316993e670cb2810dfacbd7 100644 (file)
@@ -150,7 +150,7 @@ static int ti_download_firmware(struct ti_device *tdev);
 /* Data */
 
 /* module parameters */
-static int debug;
+static bool debug;
 static int closing_wait = TI_DEFAULT_CLOSING_WAIT;
 static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT];
 static unsigned int vendor_3410_count;
index ce6c1a65a5442b8082722d2d783cafd8be46beb7..611b206591cb4f3c39abfc8ccb4520bcc7a25f36 100644 (file)
@@ -61,7 +61,7 @@ static struct usb_driver usb_serial_driver = {
    drivers depend on it.
 */
 
-static int debug;
+static bool debug;
 /* initially all NULL */
 static struct usb_serial *serial_table[SERIAL_TTY_MINORS];
 static DEFINE_MUTEX(table_lock);
index d555ca9567b8507baa292f0087d1b20f9881783a..c88657dd31c88495a65a49f0aff2aca047f89481 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/serial.h>
 #include "usb-wwan.h"
 
-static int debug;
+static bool debug;
 
 void usb_wwan_dtr_rts(struct usb_serial_port *port, int on)
 {
index 1c11959a7d588f8b25e03013b83a4c3008b452be..210e4b10dc1126ade0a1ba9e04ea7a0485362404 100644 (file)
@@ -52,7 +52,7 @@ static int palm_os_4_probe(struct usb_serial *serial,
                                        const struct usb_device_id *id);
 
 /* Parameters that may be passed into the module. */
-static int debug;
+static bool debug;
 static __u16 vendor;
 static __u16 product;
 
index 11af903cb09f3da5d0b7a8ebf3fbc0f273faa3fe..7e0acf5c8e38bde7345b3e459f11e352e91739ac 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/ihex.h>
 #include "whiteheat.h"                 /* WhiteHEAT specific commands */
 
-static int debug;
+static bool debug;
 
 #ifndef CMSPAR
 #define CMSPAR 0
index 44bdce4242ad0a8d48e09ae6c1b94481fb602de5..622f12b62a470ffb84658085c8d57194a33a7c63 100644 (file)
@@ -301,9 +301,9 @@ static struct fb_ops atyfb_ops = {
        .fb_sync        = atyfb_sync,
 };
 
-static int noaccel;
+static bool noaccel;
 #ifdef CONFIG_MTRR
-static int nomtrr;
+static bool nomtrr;
 #endif
 static int vram;
 static int pll;
index 150684882ef74fce86d33ea2ed14bad9afa5df5b..ce1506b75adfb4c04a028498b111b497139a8dec 100644 (file)
@@ -263,19 +263,19 @@ static reg_val common_regs[] = {
         
 static char *mode_option;
 static char *monitor_layout;
-static int noaccel = 0;
+static bool noaccel = 0;
 static int default_dynclk = -2;
-static int nomodeset = 0;
-static int ignore_edid = 0;
-static int mirror = 0;
+static bool nomodeset = 0;
+static bool ignore_edid = 0;
+static bool mirror = 0;
 static int panel_yres = 0;
-static int force_dfp = 0;
-static int force_measure_pll = 0;
+static bool force_dfp = 0;
+static bool force_measure_pll = 0;
 #ifdef CONFIG_MTRR
-static int nomtrr = 0;
+static bool nomtrr = 0;
 #endif
-static int force_sleep;
-static int ignore_devlist;
+static bool force_sleep;
+static bool ignore_devlist;
 #ifdef CONFIG_PMAC_BACKLIGHT
 static int backlight = 1;
 #else
index 6df7c54db0a3470b1150d1eb8f5089967628eb73..6fb499e7678f4e989df30484ee1fba85b70c0502 100644 (file)
@@ -350,7 +350,7 @@ struct cirrusfb_info {
        void (*unmap)(struct fb_info *info);
 };
 
-static int noaccel __devinitdata;
+static bool noaccel __devinitdata;
 static char *mode_option __devinitdata = "640x480@60";
 
 /****************************************************************************/
index 4394389caf68d8e8ffa40c5d19e2eec3970d76eb..c645f928265001dc5bb5485a25a1a2012aafc2d4 100644 (file)
@@ -133,7 +133,7 @@ static struct fb_fix_screeninfo hga_fix __devinitdata = {
 /* Don't assume that tty1 will be the initial current console. */
 static int release_io_port = 0;
 static int release_io_ports = 0;
-static int nologo = 0;
+static bool nologo = 0;
 
 /* -------------------------------------------------------------------------
  *
index 5ba3999910509f09fc1e0775518d5c23c520ec18..c94c91fd8668d436bacbac38047cb965a58be77d 100644 (file)
@@ -230,15 +230,15 @@ MODULE_DESCRIPTION("Framebuffer driver for Intel(R) " SUPPORTED_CHIPSETS
 MODULE_LICENSE("Dual BSD/GPL");
 MODULE_DEVICE_TABLE(pci, intelfb_pci_table);
 
-static int accel        = 1;
+static bool accel       = 1;
 static int vram         = 4;
-static int hwcursor     = 0;
-static int mtrr         = 1;
-static int fixed        = 0;
-static int noinit       = 0;
-static int noregister   = 0;
-static int probeonly    = 0;
-static int idonly       = 0;
+static bool hwcursor    = 0;
+static bool mtrr        = 1;
+static bool fixed       = 0;
+static bool noinit      = 0;
+static bool noregister  = 0;
+static bool probeonly   = 0;
+static bool idonly      = 0;
 static int bailearly    = 0;
 static int voffset     = 48;
 static char *mode       = NULL;
index ea7a8ccc830c8659f23b13dc98db761b89a6c0da..080c35b34bbb9d68cd6e6d2eb5456dbf85a1ca88 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/bootinfo.h>
 #endif
 
-static int nologo;
+static bool nologo;
 module_param(nologo, bool, 0);
 MODULE_PARM_DESC(nologo, "Disables startup logo");
 
index feea7b1dc3860a3f28965995d9aa24968cb7312d..fb3f6739110532ddeda7008eecfefd5e277dd207 100644 (file)
 
 /* --------------------------------------------------------------------- */
 
-static int internal;
-static int external;
-static int libretto;
-static int nostretch;
-static int nopciburst;
+static bool internal;
+static bool external;
+static bool libretto;
+static bool nostretch;
+static bool nopciburst;
 static char *mode_option __devinitdata = NULL;
 
 #ifdef MODULE
index 25d8e51031937c98ae5c05597f660d0cad363d98..b291bfaac80e79bc931c8131afec2a4f6a627353 100644 (file)
@@ -47,9 +47,9 @@ static unsigned int   def_rotate;
 static unsigned int    def_mirror;
 
 #ifdef CONFIG_FB_OMAP_MANUAL_UPDATE
-static int             manual_update = 1;
+static bool            manual_update = 1;
 #else
-static int             manual_update;
+static bool            manual_update;
 #endif
 
 static struct platform_device  *fbdev_pdev;
index 86ec12e16c7c4f8580a15c0e393daa3fb3420352..da7b18576549cd748b9245973974d19f712596eb 100644 (file)
@@ -50,7 +50,7 @@ module_param_named(def_disp, def_disp_name, charp, 0);
 MODULE_PARM_DESC(def_disp, "default display name");
 
 #ifdef DEBUG
-unsigned int dss_debug;
+bool dss_debug;
 module_param_named(debug, dss_debug, bool, 0644);
 #endif
 
index 5abf8e7e74565fb1f70794dd21b7be9d65c97dc4..46f37883e499184910471aec6875d519cdc8acc3 100644 (file)
@@ -340,8 +340,8 @@ struct dsi_packet_sent_handler_data {
 static struct platform_device *dsi_pdev_map[MAX_NUM_DSI];
 
 #ifdef DEBUG
-static unsigned int dsi_perf;
-module_param_named(dsi_perf, dsi_perf, bool, 0644);
+static bool dsi_perf;
+module_param(dsi_perf, bool, 0644);
 #endif
 
 static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dsidev)
index 6308fc59fc9e97c317bc93cc33904d6e5383f3d7..57a52eecee912cc2f1c50d161d0b0e266a080209 100644 (file)
@@ -28,7 +28,7 @@
 #endif
 
 #ifdef DEBUG
-extern unsigned int dss_debug;
+extern bool dss_debug;
 #ifdef DSS_SUBSYS_NAME
 #define DSSDBG(format, ...) \
        if (dss_debug) \
index 70aa47de7146fdc881dff6e9060976c005b1cf77..68ba1f80008220f780fb136e37d1401d43676dd3 100644 (file)
 
 static char *def_mode;
 static char *def_vram;
-static int def_vrfb;
+static bool def_vrfb;
 static int def_rotate;
-static int def_mirror;
+static bool def_mirror;
 static bool auto_update;
 static unsigned int auto_update_freq;
 module_param(auto_update, bool, 0);
 module_param(auto_update_freq, uint, 0644);
 
 #ifdef DEBUG
-unsigned int omapfb_debug;
+bool omapfb_debug;
 module_param_named(debug, omapfb_debug, bool, 0644);
-static unsigned int omapfb_test_pattern;
+static bool omapfb_test_pattern;
 module_param_named(test, omapfb_test_pattern, bool, 0644);
 #endif
 
index fdf0edeccf4e9f5972aa0679952efd22a297bb92..e12d384ea5202b156d7bea3dd05340c3c83ed20c 100644 (file)
@@ -32,7 +32,7 @@
 #include <video/omapdss.h>
 
 #ifdef DEBUG
-extern unsigned int omapfb_debug;
+extern bool omapfb_debug;
 #define DBG(format, ...) \
        do { \
                if (omapfb_debug) \
index dc7bfa91e57ab1c87bc6b2b0e4d405b050895c9a..df31a24a5026e9af75a56c0e3b66ad8718a27703 100644 (file)
@@ -78,12 +78,12 @@ static char *mode_option __devinitdata;
  * these flags allow the user to specify that requests for +ve sync
  * should be silently turned in -ve sync.
  */
-static int lowhsync;
-static int lowvsync;
-static int noaccel __devinitdata;
+static bool lowhsync;
+static bool lowvsync;
+static bool noaccel __devinitdata;
 /* mtrr option */
 #ifdef CONFIG_MTRR
-static int nomtrr __devinitdata;
+static bool nomtrr __devinitdata;
 #endif
 
 /*
index 6632ee5ecb7e1243d2e6afc177a4a71eb6a5b6ec..055e527a8e4510383f6ebb7f0d4bd4838f3bcfce 100644 (file)
  */
 static int hwcursor = 1;
 static char *mode_option __devinitdata;
-static int noaccel __devinitdata;
+static bool noaccel __devinitdata;
 
 /* mtrr option */
 #ifdef CONFIG_MTRR
-static int nomtrr __devinitdata;
+static bool nomtrr __devinitdata;
 #endif
 
 /*
index d8ab7be4fd6b5953ba1f2d57928b541038554c60..2f58cf9c813b95eed40e777658753150a2850fd1 100644 (file)
@@ -207,9 +207,9 @@ MODULE_DEVICE_TABLE(pci, rivafb_pci_tbl);
 /* command line data, set in rivafb_setup() */
 static int flatpanel __devinitdata = -1; /* Autodetect later */
 static int forceCRTC __devinitdata = -1;
-static int noaccel   __devinitdata = 0;
+static bool noaccel  __devinitdata = 0;
 #ifdef CONFIG_MTRR
-static int nomtrr __devinitdata = 0;
+static bool nomtrr __devinitdata = 0;
 #endif
 #ifdef CONFIG_PMAC_BACKLIGHT
 static int backlight __devinitdata = 1;
@@ -218,7 +218,7 @@ static int backlight __devinitdata = 0;
 #endif
 
 static char *mode_option __devinitdata = NULL;
-static int  strictmode       = 0;
+static bool strictmode       = 0;
 
 static struct fb_fix_screeninfo __devinitdata rivafb_fix = {
        .type           = FB_TYPE_PACKED_PIXELS,
index 3c22994ea31aac07256e1383503ac77ad97e650a..ccbfef5e828f3d19815dc7f91c27164c737f4250 100644 (file)
@@ -130,8 +130,8 @@ static struct usb_device_id id_table[] = {
 MODULE_DEVICE_TABLE(usb, id_table);
 
 /* module options */
-static int console;   /* Optionally allow fbcon to consume first framebuffer */
-static int fb_defio = true;  /* Optionally enable fb_defio mmap support */
+static bool console;   /* Optionally allow fbcon to consume first framebuffer */
+static bool fb_defio = true;  /* Optionally enable fb_defio mmap support */
 
 /* ufx keeps a list of urbs for efficient bulk transfers */
 static void ufx_urb_completion(struct urb *urb);
index 2301c275d63a60c033446637a3ebe5b169998a43..111fb32e87695c4343db204cc5b8dd703d725e30 100644 (file)
 
 /* initialized by setup */
 
-static int vgapass;            /* enable VGA passthrough cable */
+static bool vgapass;           /* enable VGA passthrough cable */
 static int mem;                        /* mem size in MB, 0 = autodetect */
-static int clipping = 1;       /* use clipping (slower, safer) */
+static bool clipping = 1;      /* use clipping (slower, safer) */
 static int gfxclk;             /* force FBI freq in Mhz . Dangerous */
-static int slowpci;            /* slow PCI settings */
+static bool slowpci;           /* slow PCI settings */
 
 /*
   Possible default video modes: 800x600@60, 640x480@75, 1024x768@76, 640x480@60
index a99b994c9b6b121441937acf5ce6d6143cfc5d0e..e026724a3a56528a3782e87f9615109bdcd1811f 100644 (file)
@@ -169,7 +169,7 @@ static int nowrap = 1;      /* not implemented (yet) */
 static int hwcursor = 1;
 static char *mode_option __devinitdata;
 /* mtrr option */
-static int nomtrr __devinitdata;
+static bool nomtrr __devinitdata;
 
 /* -------------------------------------------------------------------------
  *                     Hardware-specific funcions
index 1f868d0187a20672cfb407a31ab1540460e8994c..a19773149bd7edaa7844ff2777ebf771e9fe9013 100644 (file)
@@ -69,9 +69,9 @@ static struct usb_device_id id_table[] = {
 MODULE_DEVICE_TABLE(usb, id_table);
 
 /* module options */
-static int console = 1; /* Allow fbcon to open framebuffer */
-static int fb_defio = 1;  /* Detect mmap writes using page faults */
-static int shadow = 1; /* Optionally disable shadow framebuffer */
+static bool console = 1; /* Allow fbcon to open framebuffer */
+static bool fb_defio = 1;  /* Detect mmap writes using page faults */
+static bool shadow = 1; /* Optionally disable shadow framebuffer */
 
 /* dlfb keeps a list of urbs for efficient bulk transfers */
 static void dlfb_urb_completion(struct urb *urb);
index 7f8472cc993b2908e2ebc695cac102242dccc921..e7f69ef572dc9948f66989d1b7771cfc04d354f5 100644 (file)
@@ -44,11 +44,11 @@ static struct fb_fix_screeninfo uvesafb_fix __devinitdata = {
 };
 
 static int mtrr                __devinitdata = 3; /* enable mtrr by default */
-static int blank       = 1;               /* enable blanking by default */
+static bool blank      = 1;               /* enable blanking by default */
 static int ypan                = 1;             /* 0: scroll, 1: ypan, 2: ywrap */
 static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */
-static int nocrtc      __devinitdata; /* ignore CRTC settings */
-static int noedid      __devinitdata; /* don't try DDC transfers */
+static bool nocrtc     __devinitdata; /* ignore CRTC settings */
+static bool noedid     __devinitdata; /* don't try DDC transfers */
 static int vram_remap  __devinitdata; /* set amt. of memory to be used */
 static int vram_total  __devinitdata; /* set total amount of memory */
 static u16 maxclk      __devinitdata; /* maximum pixel clock */
index bf2f78065cf97d8d0bcdf492087244946783e99c..501a922aa9dc425c0d45258c8fb19ac897d51da9 100644 (file)
@@ -110,7 +110,7 @@ static struct fb_fix_screeninfo vfb_fix __devinitdata = {
        .accel =        FB_ACCEL_NONE,
 };
 
-static int vfb_enable __initdata = 0;  /* disabled by default */
+static bool vfb_enable __initdata = 0; /* disabled by default */
 module_param(vfb_enable, bool, 0);
 
 static int vfb_check_var(struct fb_var_screeninfo *var,
index d4d8d1fdccc42987c4919a12157f89ebd47b291f..e45ca2b4bfbeea2722fb91097fc8f1cfea63d60c 100644 (file)
@@ -100,7 +100,7 @@ MODULE_PARM_DESC(f71862fg_pin,
        "Watchdog f71862fg reset output pin configuration. Choose pin 56 or 63"
                        " (default=" __MODULE_STRING(WATCHDOG_F71862FG_PIN)")");
 
-static int nowayout = WATCHDOG_NOWAYOUT;
+static bool nowayout = WATCHDOG_NOWAYOUT;
 module_param(nowayout, bool, 0444);
 MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close");
 
index eed5436ffb512dd75b54f3c10a97040f71a0c71d..20feb4d3d791037049bbd95b9b0d8c93874f8af6 100644 (file)
@@ -55,7 +55,7 @@ module_param(timeout, ushort, 0);
 MODULE_PARM_DESC(timeout,
        "Watchdog timeout in ticks. (0<timeout<65536, default=65535)");
 
-static int reset = 1;
+static bool reset = 1;
 module_param(reset, bool, 0);
 MODULE_PARM_DESC(reset,
        "Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset");
index 52fed16d870161c781c23275e8aeaedb9cef9b7c..30d7be026c189de2b4235eb7818a6d5e971aa0fb 100644 (file)
@@ -16,7 +16,7 @@
 #include "conf_space.h"
 #include "conf_space_quirks.h"
 
-static int permissive;
+static bool permissive;
 module_param(permissive, bool, 0644);
 
 /* This is where xen_pcibk_read_config_byte, xen_pcibk_read_config_word,
index 8e1c44d8ab469d2e28d47a838cb003fafb79949c..d5dcf8d5d3d91efbaba633f4c2f60259b9c455d0 100644 (file)
@@ -16,7 +16,7 @@
 #define INVALID_EVTCHN_IRQ  (-1)
 struct workqueue_struct *xen_pcibk_wq;
 
-static int __read_mostly passthrough;
+static bool __read_mostly passthrough;
 module_param(passthrough, bool, S_IRUGO);
 MODULE_PARM_DESC(passthrough,
        "Option to specify how to export PCI topology to guest:\n"\
index 23d7451b2938226c879be67208d2431166ea3466..65ba36b80a9e1a482f838d0846a07d0ec800b015 100644 (file)
@@ -55,7 +55,7 @@ static                                DEFINE_SPINLOCK(nsm_lock);
  * Local NSM state
  */
 u32    __read_mostly           nsm_local_state;
-int    __read_mostly           nsm_use_hostnames;
+bool   __read_mostly           nsm_use_hostnames;
 
 static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm)
 {
index 277dfaf2e99ac063dee95c4eddbfb8bb9afbfe1e..31778f74357de4bb3f923f6fb6d37382b598ddd1 100644 (file)
@@ -84,7 +84,7 @@ retry:
 /*
  * Turn off NFSv4 uid/gid mapping when using AUTH_SYS
  */
-static int nfs4_disable_idmapping = 1;
+static bool nfs4_disable_idmapping = true;
 
 /*
  * RPC cruft for NFS
index 25c3bfad7953645309272c324ba442680546eef3..f649fba8c38489e2cae05eb60e4ead032aca963d 100644 (file)
@@ -57,7 +57,7 @@
 #define NFS_64_BIT_INODE_NUMBERS_ENABLED       1
 
 /* Default is to see 64-bit inode numbers */
-static int enable_ino64 = NFS_64_BIT_INODE_NUMBERS_ENABLED;
+static bool enable_ino64 = NFS_64_BIT_INODE_NUMBERS_ENABLED;
 
 static void nfs_invalidate_inode(struct inode *);
 static int nfs_update_inode(struct inode *, struct nfs_fattr *);
index f554a9313b43d7b2bbc50d599cb5f9363bfe8868..7762bc2d8404370d27be30e362b031e4da26af4c 100644 (file)
@@ -66,7 +66,7 @@ extern u8 acpi_gbl_create_osi_method;
 extern u8 acpi_gbl_use_default_register_widths;
 extern acpi_name acpi_gbl_trace_method_name;
 extern u32 acpi_gbl_trace_flags;
-extern u32 acpi_gbl_enable_aml_debug_object;
+extern bool acpi_gbl_enable_aml_debug_object;
 extern u8 acpi_gbl_copy_dsdt_locally;
 extern u8 acpi_gbl_truncate_io_addresses;
 extern u8 acpi_gbl_disable_auto_repair;
index 51a527d24a8a8b03879dfaa3b059d59d32c8991b..04f349d8da7339427002e82b887f903f96e0157e 100644 (file)
 
 #ifdef __KERNEL__
 
-extern int hest_disable;
+extern bool hest_disable;
 extern int erst_disable;
 #ifdef CONFIG_ACPI_APEI_GHES
-extern int ghes_disable;
+extern bool ghes_disable;
 #else
 #define ghes_disable 1
 #endif
index 7453cfd593c813632c3cf103ea918c471266613e..7201ce4280caceb594e4cd11cf6ca4e7a072efee 100644 (file)
@@ -152,7 +152,7 @@ extern int braille_register_console(struct console *, int index,
                char *console_options, char *braille_options);
 extern int braille_unregister_console(struct console *);
 extern void console_sysfs_notify(void);
-extern int console_suspend_enabled;
+extern bool console_suspend_enabled;
 
 /* Suspend and resume console messages over PM events */
 extern void suspend_console(void);
index 90b0656a869e319ba17b3537faffad1774ad2db7..88a114fce477ad5a42e5e5c3cb837ae7a8a1384e 100644 (file)
@@ -195,7 +195,7 @@ extern struct svc_procedure nlmsvc_procedures4[];
 #endif
 extern int                     nlmsvc_grace_period;
 extern unsigned long           nlmsvc_timeout;
-extern int                     nsm_use_hostnames;
+extern bool                    nsm_use_hostnames;
 extern u32                     nsm_local_state;
 
 /*
index a3ac9c48e5de60dc71fe71f3eb5d067e315ac4fb..8ef7894a48d05636e657210932ae12e79a10c261 100644 (file)
@@ -396,7 +396,7 @@ static inline void mmc_set_disable_delay(struct mmc_host *host,
 }
 
 /* Module parameter */
-extern int mmc_assume_removable;
+extern bool mmc_assume_removable;
 
 static inline int mmc_card_is_removable(struct mmc_host *host)
 {
index 38ccaea08204deb64c5f2404e43e0c722826a76a..df364956081867b5d309480788b058db6e6516b3 100644 (file)
 
 /* Control parameters settable through module/boot flags */
 extern enum audit_mode aa_g_audit;
-extern int aa_g_audit_header;
-extern int aa_g_debug;
-extern int aa_g_lock_policy;
-extern int aa_g_logsyscall;
-extern int aa_g_paranoid_load;
+extern bool aa_g_audit_header;
+extern bool aa_g_debug;
+extern bool aa_g_lock_policy;
+extern bool aa_g_logsyscall;
+extern bool aa_g_paranoid_load;
 extern unsigned int aa_g_path_max;
 
 /*
index d7f06f8b283721df6f450bff880aa6d87a40bb50..68d50c54e43158516fc1f560b0ae7c8a66bae514 100644 (file)
@@ -708,7 +708,7 @@ module_param_call(mode, param_set_mode, param_get_mode,
                  &aa_g_profile_mode, S_IRUSR | S_IWUSR);
 
 /* Debug mode */
-int aa_g_debug;
+bool aa_g_debug;
 module_param_named(debug, aa_g_debug, aabool, S_IRUSR | S_IWUSR);
 
 /* Audit mode */
@@ -719,7 +719,7 @@ module_param_call(audit, param_set_audit, param_get_audit,
 /* Determines if audit header is included in audited messages.  This
  * provides more context if the audit daemon is not running
  */
-int aa_g_audit_header = 1;
+bool aa_g_audit_header = 1;
 module_param_named(audit_header, aa_g_audit_header, aabool,
                   S_IRUSR | S_IWUSR);
 
@@ -727,12 +727,12 @@ module_param_named(audit_header, aa_g_audit_header, aabool,
  * TODO: add in at boot loading of policy, which is the only way to
  *       load policy, if lock_policy is set
  */
-int aa_g_lock_policy;
+bool aa_g_lock_policy;
 module_param_named(lock_policy, aa_g_lock_policy, aalockpolicy,
                   S_IRUSR | S_IWUSR);
 
 /* Syscall logging mode */
-int aa_g_logsyscall;
+bool aa_g_logsyscall;
 module_param_named(logsyscall, aa_g_logsyscall, aabool, S_IRUSR | S_IWUSR);
 
 /* Maximum pathname length before accesses will start getting rejected */
@@ -742,12 +742,12 @@ module_param_named(path_max, aa_g_path_max, aauint, S_IRUSR | S_IWUSR);
 /* Determines how paranoid loading of policy is and how much verification
  * on the loaded policy is done.
  */
-int aa_g_paranoid_load = 1;
+bool aa_g_paranoid_load = 1;
 module_param_named(paranoid_load, aa_g_paranoid_load, aabool,
                   S_IRUSR | S_IWUSR);
 
 /* Boot time disable flag */
-static unsigned int apparmor_enabled = CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE;
+static bool apparmor_enabled = CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE;
 module_param_named(enabled, apparmor_enabled, aabool, S_IRUSR);
 
 static int __init apparmor_enabled_setup(char *str)
index 0fb448e6a1a33288694e78ae764540df7e7a80bb..a457d2138f49ac8ed860507de8c9068566368889 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/iommu.h>
 #include <linux/intel-iommu.h>
 
-static int allow_unsafe_assigned_interrupts;
+static bool allow_unsafe_assigned_interrupts;
 module_param_named(allow_unsafe_assigned_interrupts,
                   allow_unsafe_assigned_interrupts, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(allow_unsafe_assigned_interrupts,