mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 16:58:53 +00:00
staging: sm7xxfb: remove numvgamodes
numvgamodes was only used in one place, so remove the #define and use its defined value. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9d91928c9d
commit
7caf463de8
@ -775,5 +775,3 @@ static struct ModeInit vgamode[] = {
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
#define numvgamodes ARRAY_SIZE(vgamode)
|
||||
|
@ -477,7 +477,7 @@ static void sm7xx_set_timing(struct smtcfb_info *sfb)
|
||||
"sfb->width=%d sfb->height=%d sfb->fb->var.bits_per_pixel=%d sfb->hz=%d\n",
|
||||
sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz);
|
||||
|
||||
for (j = 0; j < numvgamodes; j++) {
|
||||
for (j = 0; j < ARRAY_SIZE(vgamode); j++) {
|
||||
if (vgamode[j].mmsizex == sfb->width &&
|
||||
vgamode[j].mmsizey == sfb->height &&
|
||||
vgamode[j].bpp == sfb->fb->var.bits_per_pixel &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user