提交 f787f32e 编写于 作者: R Rusty Russell 提交者: Florian Tobias Schandinat

module_param: make bool parameters really bool (drivers/video/i810)

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.
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
上级 6b3cbe40
...@@ -135,8 +135,8 @@ static struct pci_driver i810fb_driver = { ...@@ -135,8 +135,8 @@ static struct pci_driver i810fb_driver = {
static char *mode_option __devinitdata = NULL; static char *mode_option __devinitdata = NULL;
static int vram __devinitdata = 4; static int vram __devinitdata = 4;
static int bpp __devinitdata = 8; static int bpp __devinitdata = 8;
static int mtrr __devinitdata; static bool mtrr __devinitdata;
static int accel __devinitdata; static bool accel __devinitdata;
static int hsync1 __devinitdata; static int hsync1 __devinitdata;
static int hsync2 __devinitdata; static int hsync2 __devinitdata;
static int vsync1 __devinitdata; static int vsync1 __devinitdata;
...@@ -144,9 +144,9 @@ static int vsync2 __devinitdata; ...@@ -144,9 +144,9 @@ static int vsync2 __devinitdata;
static int xres __devinitdata; static int xres __devinitdata;
static int yres; static int yres;
static int vyres __devinitdata; static int vyres __devinitdata;
static int sync __devinitdata; static bool sync __devinitdata;
static int extvga __devinitdata; static bool extvga __devinitdata;
static int dcolor __devinitdata; static bool dcolor __devinitdata;
static bool ddc3 __devinitdata; static bool ddc3 __devinitdata;
/*------------------------------------------------------------*/ /*------------------------------------------------------------*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册