diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-14 22:03:56 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-12-19 15:21:55 -0500 |
commit | 109782ec8d2e1886f80be90a295361c1a86a51df (patch) | |
tree | b895bbdf252a07b302fd72bf4e7253d064d302b1 /drivers/video/i810 | |
parent | 00f1f199eaab5589aed653dec953dd57d6c9bcda (diff) |
i810: fix module_param bool abuse.
The driver says "module_param(ddc3, bool, 0);". But it's not a used
as a bool, it's used as a count.
Make it a bool.
Cc: Antonino Daplas <adaplas@gmail.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/i810')
-rw-r--r-- | drivers/video/i810/i810_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index 318f6fb895b2..5a4ac3c85331 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c | |||
@@ -147,7 +147,7 @@ static int vyres __devinitdata; | |||
147 | static int sync __devinitdata; | 147 | static int sync __devinitdata; |
148 | static int extvga __devinitdata; | 148 | static int extvga __devinitdata; |
149 | static int dcolor __devinitdata; | 149 | static int dcolor __devinitdata; |
150 | static int ddc3 __devinitdata = 2; | 150 | static bool ddc3 __devinitdata; |
151 | 151 | ||
152 | /*------------------------------------------------------------*/ | 152 | /*------------------------------------------------------------*/ |
153 | 153 | ||
@@ -1776,7 +1776,7 @@ static void __devinit i810_init_defaults(struct i810fb_par *par, | |||
1776 | if (sync) | 1776 | if (sync) |
1777 | par->dev_flags |= ALWAYS_SYNC; | 1777 | par->dev_flags |= ALWAYS_SYNC; |
1778 | 1778 | ||
1779 | par->ddc_num = ddc3; | 1779 | par->ddc_num = (ddc3 ? 3 : 2); |
1780 | 1780 | ||
1781 | if (bpp < 8) | 1781 | if (bpp < 8) |
1782 | bpp = 8; | 1782 | bpp = 8; |
@@ -1999,7 +1999,7 @@ static int __devinit i810fb_setup(char *options) | |||
1999 | else if (!strncmp(this_opt, "dcolor", 6)) | 1999 | else if (!strncmp(this_opt, "dcolor", 6)) |
2000 | dcolor = 1; | 2000 | dcolor = 1; |
2001 | else if (!strncmp(this_opt, "ddc3", 4)) | 2001 | else if (!strncmp(this_opt, "ddc3", 4)) |
2002 | ddc3 = 3; | 2002 | ddc3 = true; |
2003 | else | 2003 | else |
2004 | mode_option = this_opt; | 2004 | mode_option = this_opt; |
2005 | } | 2005 | } |