Permalink
Browse files

module_param: make bool parameters really bool (drivers & misc)

module_param(bool) used to counter-intuitively take an int.  In
fddd520 (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>
  • Loading branch information...
1 parent 476bc00 commit 90ab5ee94171b3e28de6bb42ee30b527014e0be7 @rustyrussell rustyrussell committed Jan 12, 2012
Showing with 471 additions and 465 deletions.
  1. +1 −1 drivers/accessibility/braille/braille_console.c
  2. +1 −1 drivers/acpi/acpica/acglobal.h
  3. +1 −1 drivers/acpi/apei/ghes.c
  4. +1 −1 drivers/acpi/apei/hest.c
  5. +1 −1 drivers/acpi/dock.c
  6. +1 −1 drivers/acpi/pci_slot.c
  7. +3 −3 drivers/acpi/video.c
  8. +3 −3 drivers/ata/sata_nv.c
  9. +1 −1 drivers/ata/sata_sil24.c
  10. +3 −3 drivers/atm/he.c
  11. +2 −2 drivers/block/drbd/drbd_int.h
  12. +2 −2 drivers/block/drbd/drbd_main.c
  13. +2 −3 drivers/block/paride/bpck6.c
  14. +2 −1 drivers/block/paride/pd.c
  15. +3 −1 drivers/block/paride/pf.c
  16. +2 −1 drivers/block/paride/pg.c
  17. +3 −1 drivers/block/paride/pt.c
  18. +1 −1 drivers/block/xd.c
  19. +6 −6 drivers/bluetooth/btusb.c
  20. +2 −2 drivers/bluetooth/hci_bcsp.c
  21. +1 −1 drivers/bluetooth/hci_ldisc.c
  22. +6 −6 drivers/cdrom/cdrom.c
  23. +1 −1 drivers/char/agp/amd64-agp.c
  24. +1 −1 drivers/char/agp/sis-agp.c
  25. +4 −4 drivers/char/i8k.c
  26. +1 −1 drivers/char/ipmi/ipmi_si_intf.c
  27. +1 −1 drivers/char/lp.c
  28. +1 −1 drivers/char/nwflash.c
  29. +1 −1 drivers/char/pcmcia/synclink_cs.c
  30. +1 −1 drivers/char/random.c
  31. +3 −3 drivers/char/tpm/tpm_tis.c
  32. +1 −1 drivers/edac/r82600_edac.c
  33. +1 −1 drivers/firewire/sbp2.c
  34. +1 −1 drivers/hid/hid-prodikeys.c
  35. +1 −1 drivers/hwmon/abituguru.c
  36. +2 −2 drivers/hwmon/abituguru3.c
  37. +1 −1 drivers/hwmon/acpi_power_meter.c
  38. +1 −1 drivers/hwmon/adm1021.c
  39. +2 −2 drivers/hwmon/ads7828.c
  40. +2 −2 drivers/hwmon/dme1737.c
  41. +2 −2 drivers/hwmon/it87.c
  42. +2 −2 drivers/hwmon/lm93.c
  43. +1 −1 drivers/hwmon/max1668.c
  44. +1 −1 drivers/hwmon/w83627hf.c
  45. +2 −2 drivers/hwmon/w83781d.c
  46. +2 −2 drivers/hwmon/w83791d.c
  47. +1 −1 drivers/hwmon/w83792d.c
  48. +1 −1 drivers/hwmon/w83793.c
  49. +1 −1 drivers/hwmon/w83795.c
  50. +1 −1 drivers/hwmon/w83l786ng.c
  51. +1 −1 drivers/i2c/busses/i2c-highlander.c
  52. +2 −2 drivers/i2c/busses/i2c-ibm_iic.c
  53. +2 −2 drivers/i2c/busses/i2c-sis630.c
  54. +1 −1 drivers/i2c/busses/i2c-viapro.c
  55. +1 −1 drivers/ide/ali14xx.c
  56. +1 −1 drivers/ide/cmd640.c
  57. +1 −1 drivers/ide/dtc2278.c
  58. +1 −1 drivers/ide/gayle.c
  59. +1 −1 drivers/ide/ht6560b.c
  60. +1 −1 drivers/ide/ide-4drives.c
  61. +3 −3 drivers/ide/ide-acpi.c
  62. +1 −1 drivers/ide/ide-pci-generic.c
  63. +1 −1 drivers/ide/qd65xx.c
  64. +1 −1 drivers/ide/umc8672.c
  65. +2 −2 drivers/infiniband/hw/ehca/ehca_classes.h
  66. +4 −4 drivers/infiniband/hw/ehca/ehca_main.c
  67. +1 −1 drivers/infiniband/hw/nes/nes.c
  68. +3 −3 drivers/input/joystick/xpad.c
  69. +1 −1 drivers/input/misc/wistron_btns.c
  70. +1 −1 drivers/input/mouse/psmouse-base.c
  71. +3 −3 drivers/input/mouse/synaptics_i2c.c
  72. +1 −1 drivers/input/serio/hp_sdc.c
  73. +2 −2 drivers/input/touchscreen/eeti_ts.c
  74. +2 −2 drivers/input/touchscreen/htcpen.c
  75. +1 −1 drivers/input/touchscreen/ucb1400_ts.c
  76. +2 −2 drivers/input/touchscreen/usbtouchscreen.c
  77. +1 −1 drivers/isdn/hardware/avm/b1dma.c
  78. +1 −1 drivers/isdn/hardware/avm/c4.c
  79. +1 −1 drivers/isdn/sc/init.c
  80. +1 −1 drivers/leds/leds-clevo-mail.c
  81. +1 −1 drivers/leds/leds-ss4200.c
  82. +1 −1 drivers/macintosh/ams/ams-core.c
  83. +2 −2 drivers/macintosh/ams/ams-input.c
  84. +1 −1 drivers/macintosh/therm_adt746x.c
  85. +1 −1 drivers/media/dvb/dvb-usb/af9005.c
  86. +1 −1 drivers/media/dvb/dvb-usb/af9005.h
  87. +5 −5 drivers/media/radio/radio-gemtek.c
  88. +1 −1 drivers/media/radio/radio-miropcm20.c
  89. +1 −1 drivers/media/rc/lirc_dev.c
  90. +2 −2 drivers/media/rc/mceusb.c
  91. +2 −2 drivers/media/rc/streamzap.c
  92. +2 −2 drivers/media/rc/winbond-cir.c
  93. +1 −1 drivers/media/video/c-qcam.c
  94. +1 −1 drivers/media/video/cs5345.c
  95. +1 −1 drivers/media/video/cs53l32a.c
  96. +1 −1 drivers/media/video/cx18/cx18-driver.c
  97. +1 −1 drivers/media/video/cx25821/cx25821-alsa.c
  98. +1 −1 drivers/media/video/cx88/cx88-alsa.c
  99. +2 −2 drivers/media/video/gspca/m5602/m5602_core.c
  100. +1 −1 drivers/media/video/gspca/m5602/m5602_mt9m111.h
  101. +1 −1 drivers/media/video/gspca/m5602/m5602_ov7660.h
  102. +1 −1 drivers/media/video/gspca/m5602/m5602_ov9650.h
  103. +1 −1 drivers/media/video/gspca/m5602/m5602_po1030.h
  104. +1 −1 drivers/media/video/gspca/m5602/m5602_s5k4aa.h
  105. +1 −1 drivers/media/video/gspca/m5602/m5602_s5k83a.h
  106. +2 −2 drivers/media/video/gspca/stv06xx/stv06xx.c
  107. +1 −1 drivers/media/video/hdpvr/hdpvr-core.c
  108. +1 −1 drivers/media/video/ivtv/ivtv-driver.c
  109. +1 −1 drivers/media/video/ivtv/ivtvfb.c
  110. +3 −3 drivers/media/video/marvell-ccic/mcam-core.c
  111. +3 −3 drivers/media/video/msp3400-driver.c
  112. +3 −3 drivers/media/video/msp3400-driver.h
  113. +3 −3 drivers/media/video/omap/omap_vout.c
  114. +1 −1 drivers/media/video/omap/omap_vout_vrfb.c
  115. +1 −1 drivers/media/video/ov7670.c
  116. +1 −1 drivers/media/video/saa7115.c
  117. +2 −2 drivers/media/video/stk-webcam.c
  118. +1 −1 drivers/media/video/tm6000/tm6000-alsa.c
  119. +1 −1 drivers/media/video/tvp514x.c
  120. +1 −1 drivers/media/video/tvp7002.c
  121. +1 −1 drivers/media/video/upd64083.c
  122. +2 −2 drivers/media/video/via-camera.c
  123. +1 −1 drivers/media/video/zoran/zoran_device.c
  124. +1 −1 drivers/media/video/zoran/zr36060.c
  125. +1 −1 drivers/memstick/host/jmb38x_ms.c
  126. +1 −1 drivers/memstick/host/r592.c
  127. +1 −1 drivers/memstick/host/tifm_ms.c
  128. +6 −6 drivers/misc/iwmc3200top/main.c
  129. +3 −3 drivers/mmc/core/core.c
  130. +1 −1 drivers/mmc/core/core.h
  131. +2 −2 drivers/mmc/host/tifm_sd.c
  132. +5 −5 drivers/mmc/host/vub300.c
  133. +1 −1 drivers/mtd/nand/pxa3xx_nand.c
  134. +1 −1 drivers/mtd/nand/r852.c
  135. +1 −1 drivers/parport/parport_ip32.c
  136. +1 −1 drivers/pci/hotplug/acpi_pcihp.c
  137. +1 −1 drivers/pci/hotplug/acpiphp_core.c
  138. +1 −1 drivers/pci/hotplug/acpiphp_ibm.c
  139. +2 −2 drivers/pci/hotplug/cpcihp_zt5550.c
  140. +2 −2 drivers/pci/hotplug/cpqphp_core.c
  141. +1 −1 drivers/pci/hotplug/ibmphp_core.c
  142. +1 −1 drivers/pci/hotplug/pci_hotplug_core.c
  143. +3 −3 drivers/pci/hotplug/pciehp.h
  144. +3 −3 drivers/pci/hotplug/pciehp_core.c
  145. +1 −1 drivers/pci/hotplug/pcihp_skeleton.c
  146. +1 −1 drivers/pci/hotplug/rpaphp.h
  147. +1 −1 drivers/pci/hotplug/rpaphp_core.c
  148. +2 −2 drivers/pci/hotplug/shpchp.h
  149. +2 −2 drivers/pci/hotplug/shpchp_core.c
  150. +1 −1 drivers/pci/pcie/aer/aer_inject.c
  151. +2 −2 drivers/pci/pcie/aer/aerdrv_core.c
  152. +3 −3 drivers/pcmcia/yenta_socket.c
  153. +1 −1 drivers/platform/x86/compal-laptop.c
  154. +1 −1 drivers/platform/x86/intel_oaktrail.c
  155. +1 −1 drivers/platform/x86/msi-laptop.c
  156. +2 −2 drivers/platform/x86/samsung-laptop.c
  157. +8 −8 drivers/platform/x86/thinkpad_acpi.c
  158. +2 −2 drivers/platform/x86/wmi.c
  159. +1 −1 drivers/power/ds2760_battery.c
  160. +1 −1 drivers/s390/char/raw3270.c
  161. +2 −2 drivers/s390/char/vmwatchdog.c
  162. +1 −1 drivers/scsi/aha1542.c
  163. +1 −1 drivers/scsi/dc395x.c
  164. +2 −2 drivers/scsi/nsp32.c
  165. +1 −1 drivers/scsi/pcmcia/nsp_cs.c
  166. +1 −1 drivers/staging/comedi/comedi_fops.c
  167. +2 −1 drivers/staging/comedi/comedi_fops.h
  168. +1 −1 drivers/staging/media/go7007/snd-go7007.c
  169. +1 −1 drivers/staging/media/lirc/lirc_bt829.c
  170. +2 −2 drivers/staging/media/lirc/lirc_igorplugusb.c
  171. +2 −2 drivers/staging/media/lirc/lirc_parallel.c
  172. +5 −5 drivers/staging/media/lirc/lirc_serial.c
  173. +1 −1 drivers/staging/media/lirc/lirc_sir.c
  174. +2 −2 drivers/staging/media/lirc/lirc_zilog.c
  175. +1 −1 drivers/staging/quatech_usb2/quatech_usb2.c
  176. +1 −1 drivers/staging/serqt_usb2/serqt_usb2.c
  177. +1 −1 drivers/staging/speakup/speakup.h
  178. +1 −1 drivers/staging/speakup/synth.c
  179. +1 −1 drivers/staging/vme/bridges/vme_tsi148.c
  180. +1 −1 drivers/tty/rocket.c
  181. +1 −1 drivers/tty/synclink.c
  182. +1 −1 drivers/tty/synclinkmp.c
  183. +3 −3 drivers/usb/atm/speedtch.c
  184. +1 −1 drivers/usb/atm/ueagle-atm.c
  185. +1 −1 drivers/usb/core/devio.c
  186. +4 −4 drivers/usb/core/hub.c
  187. +1 −1 drivers/usb/core/usb.c
  188. +4 −4 drivers/usb/gadget/amd5536udc.c
  189. +2 −2 drivers/usb/gadget/ether.c
  190. +5 −5 drivers/usb/gadget/file_storage.c
  191. +1 −1 drivers/usb/gadget/net2272.c
  192. +3 −3 drivers/usb/gadget/net2280.c
  193. +1 −1 drivers/usb/gadget/omap_udc.c
  194. +1 −1 drivers/usb/gadget/pch_udc.c
  195. +2 −2 drivers/usb/gadget/serial.c
  196. +1 −1 drivers/usb/gadget/zero.c
  197. +1 −1 drivers/usb/host/ehci-hcd.c
  198. +2 −2 drivers/usb/host/ohci-hcd.c
  199. +1 −1 drivers/usb/host/oxu210hp-hcd.c
  200. +1 −1 drivers/usb/host/u132-hcd.c
  201. +1 −1 drivers/usb/host/uhci-hcd.c
  202. +1 −1 drivers/usb/misc/ftdi-elan.c
  203. +1 −1 drivers/usb/misc/iowarrior.c
  204. +1 −1 drivers/usb/musb/cppi_dma.c
  205. +1 −1 drivers/usb/musb/musb_core.c
  206. +1 −1 drivers/usb/serial/aircable.c
  207. +1 −1 drivers/usb/serial/ark3116.c
  208. +1 −1 drivers/usb/serial/belkin_sa.c
  209. +1 −1 drivers/usb/serial/ch341.c
  210. +1 −1 drivers/usb/serial/cp210x.c
  211. +1 −1 drivers/usb/serial/cyberjack.c
  212. +3 −3 drivers/usb/serial/cypress_m8.c
  213. +1 −1 drivers/usb/serial/digi_acceleport.c
  214. +1 −1 drivers/usb/serial/empeg.c
  215. +1 −1 drivers/usb/serial/ftdi_sio.c
  216. +1 −1 drivers/usb/serial/funsoft.c
  217. +1 −1 drivers/usb/serial/garmin_gps.c
  218. +1 −1 drivers/usb/serial/io_edgeport.c
  219. +2 −2 drivers/usb/serial/io_ti.c
  220. +1 −1 drivers/usb/serial/ipaq.c
  221. +1 −1 drivers/usb/serial/ipw.c
  222. +1 −1 drivers/usb/serial/ir-usb.c
  223. +3 −3 drivers/usb/serial/iuu_phoenix.c
  224. +1 −1 drivers/usb/serial/keyspan.c
  225. +1 −1 drivers/usb/serial/keyspan_pda.c
  226. +1 −1 drivers/usb/serial/kl5kusb105.c
  227. +1 −1 drivers/usb/serial/mct_u232.c
  228. +1 −1 drivers/usb/serial/mos7720.c
  229. +1 −1 drivers/usb/serial/mos7840.c
  230. +1 −1 drivers/usb/serial/navman.c
  231. +1 −1 drivers/usb/serial/omninet.c
  232. +1 −1 drivers/usb/serial/opticon.c
  233. +1 −1 drivers/usb/serial/option.c
  234. +1 −1 drivers/usb/serial/oti6858.c
  235. +1 −1 drivers/usb/serial/pl2303.c
  236. +1 −1 drivers/usb/serial/qcserial.c
  237. +3 −3 drivers/usb/serial/safe_serial.c
  238. +2 −2 drivers/usb/serial/sierra.c
  239. +1 −1 drivers/usb/serial/spcp8x5.c
  240. +1 −1 drivers/usb/serial/ssu100.c
  241. +1 −1 drivers/usb/serial/symbolserial.c
  242. +1 −1 drivers/usb/serial/ti_usb_3410_5052.c
  243. +1 −1 drivers/usb/serial/usb-serial.c
  244. +1 −1 drivers/usb/serial/usb_wwan.c
  245. +1 −1 drivers/usb/serial/visor.c
  246. +1 −1 drivers/usb/serial/whiteheat.c
  247. +2 −2 drivers/video/aty/atyfb_base.c
  248. +9 −9 drivers/video/aty/radeon_base.c
  249. +1 −1 drivers/video/cirrusfb.c
  250. +1 −1 drivers/video/hgafb.c
  251. +8 −8 drivers/video/intelfb/intelfbdrv.c
  252. +1 −1 drivers/video/logo/logo.c
  253. +5 −5 drivers/video/neofb.c
  254. +2 −2 drivers/video/omap/omapfb_main.c
  255. +1 −1 drivers/video/omap2/dss/core.c
  256. +2 −2 drivers/video/omap2/dss/dsi.c
  257. +1 −1 drivers/video/omap2/dss/dss.h
  258. +4 −4 drivers/video/omap2/omapfb/omapfb-main.c
  259. +1 −1 drivers/video/omap2/omapfb/omapfb.h
  260. +4 −4 drivers/video/pm2fb.c
  261. +2 −2 drivers/video/pm3fb.c
  262. +3 −3 drivers/video/riva/fbdev.c
  263. +2 −2 drivers/video/smscufx.c
  264. +3 −3 drivers/video/sstfb.c
  265. +1 −1 drivers/video/tdfxfb.c
  266. +3 −3 drivers/video/udlfb.c
  267. +3 −3 drivers/video/uvesafb.c
  268. +1 −1 drivers/video/vfb.c
  269. +1 −1 drivers/watchdog/f71808e_wdt.c
  270. +1 −1 drivers/watchdog/mpc8xxx_wdt.c
  271. +1 −1 drivers/xen/xen-pciback/conf_space.c
  272. +1 −1 drivers/xen/xen-pciback/xenbus.c
  273. +1 −1 fs/lockd/mon.c
  274. +1 −1 fs/nfs/client.c
  275. +1 −1 fs/nfs/inode.c
  276. +1 −1 include/acpi/acpixf.h
  277. +2 −2 include/acpi/apei.h
  278. +1 −1 include/linux/console.h
  279. +1 −1 include/linux/lockd/lockd.h
  280. +1 −1 include/linux/mmc/host.h
  281. +5 −5 security/apparmor/include/apparmor.h
  282. +6 −6 security/apparmor/lsm.c
  283. +1 −1 virt/kvm/iommu.c
@@ -44,7 +44,7 @@ MODULE_LICENSE("GPL");
*/
/* Emit various sounds */
-static int sound;
+static bool sound;
module_param(sound, bool, 0);
MODULE_PARM_DESC(sound, "emit sounds");
@@ -108,7 +108,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
/*
* Optionally enable output from the AML Debug Object.
*/
-u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
+bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
/*
* Optionally copy the entire DSDT to local memory (instead of simply
@@ -118,7 +118,7 @@ struct ghes_estatus_cache {
struct rcu_head rcu;
};
-int ghes_disable;
+bool ghes_disable;
module_param_named(disable, ghes_disable, bool, 0);
static int ghes_panic_timeout __read_mostly = 30;
@@ -41,7 +41,7 @@
#define HEST_PFX "HEST: "
-int hest_disable;
+bool hest_disable;
EXPORT_SYMBOL_GPL(hest_disable);
/* HEST table parsing */
View
@@ -43,7 +43,7 @@ MODULE_AUTHOR("Kristen Carlson Accardi");
MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION);
MODULE_LICENSE("GPL");
-static int immediate_undock = 1;
+static bool immediate_undock = 1;
module_param(immediate_undock, bool, 0644);
MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to "
"undock immediately when the undock button is pressed, 0 will cause"
@@ -34,7 +34,7 @@
#include <acpi/acpi_drivers.h>
#include <linux/dmi.h>
-static int debug;
+static bool debug;
static int check_sta_before_sun;
#define DRIVER_VERSION "0.1"
@@ -69,21 +69,21 @@ MODULE_AUTHOR("Bruno Ducrot");
MODULE_DESCRIPTION("ACPI Video Driver");
MODULE_LICENSE("GPL");
-static int brightness_switch_enabled = 1;
+static bool brightness_switch_enabled = 1;
module_param(brightness_switch_enabled, bool, 0644);
/*
* By default, we don't allow duplicate ACPI video bus devices
* under the same VGA controller
*/
-static int allow_duplicates;
+static bool allow_duplicates;
module_param(allow_duplicates, bool, 0644);
/*
* Some BIOSes claim they use minimum backlight at boot,
* and this may bring dimming screen after boot
*/
-static int use_bios_initial_backlight = 1;
+static bool use_bios_initial_backlight = 1;
module_param(use_bios_initial_backlight, bool, 0644);
static int register_count = 0;
@@ -599,9 +599,9 @@ MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
MODULE_VERSION(DRV_VERSION);
-static int adma_enabled;
-static int swncq_enabled = 1;
-static int msi_enabled;
+static bool adma_enabled;
+static bool swncq_enabled = 1;
+static bool msi_enabled;
static void nv_adma_register_mode(struct ata_port *ap)
{
@@ -417,7 +417,7 @@ static struct ata_port_operations sil24_ops = {
#endif
};
-static int sata_sil24_msi; /* Disable MSI */
+static bool sata_sil24_msi; /* Disable MSI */
module_param_named(msi, sata_sil24_msi, bool, S_IRUGO);
MODULE_PARM_DESC(msi, "Enable MSI (Default: false)");
View
@@ -112,12 +112,12 @@ static u8 read_prom_byte(struct he_dev *he_dev, int addr);
/* globals */
static struct he_dev *he_devs;
-static int disable64;
+static bool disable64;
static short nvpibits = -1;
static short nvcibits = -1;
static short rx_skb_reserve = 16;
-static int irq_coalesce = 1;
-static int sdh = 0;
+static bool irq_coalesce = 1;
+static bool sdh = 0;
/* Read from EEPROM = 0000 0011b */
static unsigned int readtab[] = {
@@ -59,8 +59,8 @@
/* module parameter, defined in drbd_main.c */
extern unsigned int minor_count;
-extern int disable_sendpage;
-extern int allow_oos;
+extern bool disable_sendpage;
+extern bool allow_oos;
extern unsigned int cn_idx;
#ifdef CONFIG_DRBD_FAULT_INJECTION
@@ -117,8 +117,8 @@ module_param(fault_devs, int, 0644);
/* module parameter, defined */
unsigned int minor_count = DRBD_MINOR_COUNT_DEF;
-int disable_sendpage;
-int allow_oos;
+bool disable_sendpage;
+bool allow_oos;
unsigned int cn_idx = CN_IDX_DRBD;
int proc_details; /* Detail level in proc drbd*/
@@ -20,9 +20,6 @@
*/
-/* PARAMETERS */
-static int verbose; /* set this to 1 to see debugging messages and whatnot */
-
#define BACKPACK_VERSION "2.0.2"
#include <linux/module.h>
@@ -36,6 +33,8 @@ static int verbose; /* set this to 1 to see debugging messages and whatnot */
#include "ppc6lnx.c"
#include "paride.h"
+/* PARAMETERS */
+static bool verbose; /* set this to 1 to see debugging messages and whatnot */
#define PPCSTRUCT(pi) ((Interface *)(pi->private))
@@ -124,8 +124,9 @@
by default.
*/
+#include <linux/types.h>
-static int verbose = 0;
+static bool verbose = 0;
static int major = PD_MAJOR;
static char *name = PD_NAME;
static int cluster = 64;
@@ -118,13 +118,15 @@
#define PF_NAME "pf"
#define PF_UNITS 4
+#include <linux/types.h>
+
/* Here are things one can override from the insmod command.
Most are autoprobed by paride unless set here. Verbose is off
by default.
*/
-static int verbose = 0;
+static bool verbose = 0;
static int major = PF_MAJOR;
static char *name = PF_NAME;
static int cluster = 64;
@@ -130,13 +130,14 @@
#define PI_PG 4
#endif
+#include <linux/types.h>
/* Here are things one can override from the insmod command.
Most are autoprobed by paride unless set here. Verbose is 0
by default.
*/
-static int verbose = 0;
+static bool verbose = 0;
static int major = PG_MAJOR;
static char *name = PG_NAME;
static int disable = 0;
@@ -109,13 +109,15 @@
#define PT_NAME "pt"
#define PT_UNITS 4
+#include <linux/types.h>
+
/* Here are things one can override from the insmod command.
Most are autoprobed by paride unless set here. Verbose is on
by default.
*/
-static int verbose = 0;
+static bool verbose = 0;
static int major = PT_MAJOR;
static char *name = PT_NAME;
static int disable = 0;
View
@@ -148,7 +148,7 @@ static volatile int xdc_busy;
static struct timer_list xd_watchdog_int;
static volatile u_char xd_error;
-static int nodma = XD_DONT_USE_DMA;
+static bool nodma = XD_DONT_USE_DMA;
static struct request_queue *xd_queue;
@@ -37,13 +37,13 @@
#define VERSION "0.6"
-static int ignore_dga;
-static int ignore_csr;
-static int ignore_sniffer;
-static int disable_scofix;
-static int force_scofix;
+static bool ignore_dga;
+static bool ignore_csr;
+static bool ignore_sniffer;
+static bool disable_scofix;
+static bool force_scofix;
-static int reset = 1;
+static bool reset = 1;
static struct usb_driver btusb_driver;
@@ -49,8 +49,8 @@
#define VERSION "0.3"
-static int txcrc = 1;
-static int hciextn = 1;
+static bool txcrc = 1;
+static bool hciextn = 1;
#define BCSP_TXWINSIZE 4
@@ -48,7 +48,7 @@
#define VERSION "2.2"
-static int reset = 0;
+static bool reset = 0;
static struct hci_uart_proto *hup[HCI_UART_MAX_PROTO];
View
@@ -285,17 +285,17 @@
#include <asm/uaccess.h>
/* used to tell the module to turn on full debugging messages */
-static int debug;
+static bool debug;
/* used to keep tray locked at all times */
static int keeplocked;
/* default compatibility mode */
-static int autoclose=1;
-static int autoeject;
-static int lockdoor = 1;
+static bool autoclose=1;
+static bool autoeject;
+static bool lockdoor = 1;
/* will we ever get to use this... sigh. */
-static int check_media_type;
+static bool check_media_type;
/* automatically restart mrw format */
-static int mrw_format_restart = 1;
+static bool mrw_format_restart = 1;
module_param(debug, bool, 0);
module_param(autoclose, bool, 0);
module_param(autoeject, bool, 0);
@@ -33,7 +33,7 @@
#define ULI_X86_64_ENU_SCR_REG 0x54
static struct resource *aperture_resource;
-static int __initdata agp_try_unsupported = 1;
+static bool __initdata agp_try_unsupported = 1;
static int agp_bridges_found;
static void amd64_tlbflush(struct agp_memory *temp)
@@ -17,7 +17,7 @@
#define PCI_DEVICE_ID_SI_662 0x0662
#define PCI_DEVICE_ID_SI_671 0x0671
-static int __devinitdata agp_sis_force_delay = 0;
+static bool __devinitdata agp_sis_force_delay = 0;
static int __devinitdata agp_sis_agp_spec = -1;
static int sis_fetch_size(void)
View
@@ -69,19 +69,19 @@ MODULE_AUTHOR("Massimo Dal Zotto (dz@debian.org)");
MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops");
MODULE_LICENSE("GPL");
-static int force;
+static bool force;
module_param(force, bool, 0);
MODULE_PARM_DESC(force, "Force loading without checking for supported models");
-static int ignore_dmi;
+static bool ignore_dmi;
module_param(ignore_dmi, bool, 0);
MODULE_PARM_DESC(ignore_dmi, "Continue probing hardware even if DMI data does not match");
-static int restricted;
+static bool restricted;
module_param(restricted, bool, 0);
MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set");
-static int power_status;
+static bool power_status;
module_param(power_status, bool, 0600);
MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k");
@@ -1227,7 +1227,7 @@ static int smi_num; /* Used to sequence the SMIs */
#define DEFAULT_REGSPACING 1
#define DEFAULT_REGSIZE 1
-static int si_trydefaults = 1;
+static bool si_trydefaults = 1;
static char *si_type[SI_MAX_PARMS];
#define MAX_SI_TYPE_STR 30
static char si_type_str[MAX_SI_TYPE_STR];
View
@@ -829,7 +829,7 @@ static struct console lpcons = {
static int parport_nr[LP_NO] = { [0 ... LP_NO-1] = LP_PARPORT_UNSPEC };
static char *parport[LP_NO];
-static int reset;
+static bool reset;
module_param_array(parport, charp, NULL, 0);
module_param(reset, bool, 0);
@@ -51,7 +51,7 @@ static int write_block(unsigned long p, const char __user *buf, int count);
#define KFLASH_ID 0x89A6 //Intel flash
#define KFLASH_ID4 0xB0D4 //Intel flash 4Meg
-static int flashdebug; //if set - we will display progress msgs
+static bool flashdebug; //if set - we will display progress msgs
static int gbWriteEnable;
static int gbWriteBase64Enable;
@@ -439,7 +439,7 @@ static int mgslpc_device_count = 0;
* .text section address and breakpoint on module load.
* This is useful for use with gdb and add-symbol-file command.
*/
-static int break_on_load=0;
+static bool break_on_load=0;
/*
* Driver major number, defaults to zero to get auto
@@ -387,7 +387,7 @@ static DECLARE_WAIT_QUEUE_HEAD(random_write_wait);
static struct fasync_struct *fasync;
#if 0
-static int debug;
+static bool debug;
module_param(debug, bool, 0644);
#define DEBUG_ENT(fmt, arg...) do { \
if (debug) \
Oops, something went wrong. Retry.

0 comments on commit 90ab5ee

Please sign in to comment.