• F
    viafb: split viafb_set_start_addr up · 09cf1180
    Florian Tobias Schandinat 提交于
    Move individual start address setting to viafb_set_primary_address and
    viafb_set_secondary_address and make it more flexible to reuse it for
    panning.  Using central functions makes it easier to follow HW
    manipulations.
    
    Remove crt locking as it should be only needed for timing manipulation.
    Move iga_path manipulation to via_pci_probe.
    
    Remove memset for screen cleaning as it is currently done only for the
    second screen.  This is not needed for normal operation but has a little
    chance of causing unwanted display artifacts.  This can be fixed later
    more consistent and more efficient (using viafb_fillrect) if needed.
    
    This is a code clenup, no notable runtime changes expected.
    Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
    Cc: Scott Fang <ScottFang@viatech.com.cn>
    Cc: Joseph Chan <JosephChan@via.com.tw>
    Cc: Harald Welte <laforge@gnumonks.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    09cf1180
viafbdev.c 70.8 KB