Commit 03e9e709 authored by Javier M. Mellid's avatar Javier M. Mellid Committed by Greg Kroah-Hartman

staging: sm7xxfb: rename sm712vga_setup to sm7xx_vga_setup

This patch renames sm712vga_setup to sm7xx_vga_setup. sm7xx_vga_setup
process command line options in order to get the vga parameter. This
parameter will be the lookup index to match the right vesa mode. It is
chip independent.
Signed-off-by: default avatarJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 013db674
...@@ -756,13 +756,8 @@ static inline void sm7xx_init_hw(void) ...@@ -756,13 +756,8 @@ static inline void sm7xx_init_hw(void)
outb_p(0x11, 0x3c5); outb_p(0x11, 0x3c5);
} }
/* /* process command line options, get vga parameter */
* sm712vga_setup - process command line options, get vga parameter static int __init sm7xx_vga_setup(char *options)
* @options: string of options
* Returns zero.
*
*/
static int __init sm712vga_setup(char *options)
{ {
int i; int i;
...@@ -773,7 +768,7 @@ static int __init sm712vga_setup(char *options) ...@@ -773,7 +768,7 @@ static int __init sm712vga_setup(char *options)
smtc_scr_info.lfb_height = 0; smtc_scr_info.lfb_height = 0;
smtc_scr_info.lfb_depth = 0; smtc_scr_info.lfb_depth = 0;
pr_debug("sm712vga_setup = %s\n", options); pr_debug("sm7xx_vga_setup = %s\n", options);
for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) { for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) {
if (strstr(options, vesa_mode_table[i].index)) { if (strstr(options, vesa_mode_table[i].index)) {
...@@ -786,7 +781,7 @@ static int __init sm712vga_setup(char *options) ...@@ -786,7 +781,7 @@ static int __init sm712vga_setup(char *options)
return -1; return -1;
} }
__setup("vga=", sm712vga_setup); __setup("vga=", sm7xx_vga_setup);
static int __devinit smtcfb_pci_probe(struct pci_dev *pdev, static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment