diff options
author | Javier M. Mellid | 2012-07-11 15:49:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-07-17 03:50:16 +0200 |
commit | 4102d9f86d4d88f2bf150f3d073b789f35c9ac6b (patch) | |
tree | 39b2cd7729231c48727eaf9d57f04687864ad723 /drivers/staging/sm7xxfb | |
parent | staging: sm7xxfb: fix struct names related to vesa modes (diff) | |
download | kernel-qcow2-linux-4102d9f86d4d88f2bf150f3d073b789f35c9ac6b.tar.gz kernel-qcow2-linux-4102d9f86d4d88f2bf150f3d073b789f35c9ac6b.tar.xz kernel-qcow2-linux-4102d9f86d4d88f2bf150f3d073b789f35c9ac6b.zip |
staging: sm7xxfb: rename index var on sm712vga_setup
This patchs renames index var on sm712vga_setup.
Tested with SM712.
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm7xxfb')
-rw-r--r-- | drivers/staging/sm7xxfb/sm7xxfb.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 9afafaae3c58..4287a80b7388 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -764,7 +764,7 @@ static inline void sm7xx_init_hw(void) */ static int __init sm712vga_setup(char *options) { - int index; + int i; if (!options || !*options) return -EINVAL; @@ -775,16 +775,14 @@ static int __init sm712vga_setup(char *options) pr_debug("sm712vga_setup = %s\n", options); - for (index = 0; - index < ARRAY_SIZE(vesa_mode_table); - index++) { - if (strstr(options, vesa_mode_table[index].index)) { + for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) { + if (strstr(options, vesa_mode_table[i].index)) { smtc_screen_info.lfb_width = - vesa_mode_table[index].lfb_width; + vesa_mode_table[i].lfb_width; smtc_screen_info.lfb_height = - vesa_mode_table[index].lfb_height; + vesa_mode_table[i].lfb_height; smtc_screen_info.lfb_depth = - vesa_mode_table[index].lfb_depth; + vesa_mode_table[i].lfb_depth; return 0; } } |