x86/sysfb: Fix lfb_size calculation
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 15 Nov 2016 12:01:58 +0000 (13:01 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 16 Nov 2016 08:38:23 +0000 (09:38 +0100)
commitf96acec8c8020807429d21324547f4b904c37177
treee69e6c294d332d2fed78748076350f5a3b67d415
parent9164b4ceb7b492a77c7fe770a4b9d1375c9cd45a
x86/sysfb: Fix lfb_size calculation

The screen_info.lfb_size field is shifted by 16 bits *only* in case of
VBE. This has historical reasons since VBE advertised it similarly.
However, in case of EFI framebuffers, the size is no longer shifted. Fix
the x86 simple-framebuffer setup code to use the correct size in the
non-VBE case.

While at it, avoid variable abbreviations and rename 'len' to 'length',
and use the correct types matching the screen_info definition.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tom Gundersen <teg@jklm.no>
Link: http://lkml.kernel.org/r/20161115120158.15388-3-dh.herrmann@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/sysfb_simplefb.c