• Sven Neumann's avatar
    pxafb: use passed fb_var_screeninfo struct in pxafb_pan_display() · 448ac479
    Sven Neumann authored
    pxafb_pan_display() used to ignore the fb_var_screeninfo parameter. Now
    pass it to setup_base_frame() instead of pulling default values out of
    fb_info.
    
    And the original patch has an issue of pxafb_pan_display() paying only
    attention to the 'var' parameter passed in, and Ville Syrjälä pointed
    out, this is potentially dangerous as user could pass in any other
    screeninfo parameters as well, and not only such that are relevant for
    display panning. This is fixed by limiting the arguments actually used
    to .xoffset, .yoffset and .vmode & FB_VMODE_YWRAP.
    Signed-off-by: default avatarSven Neumann <s.neumann@raumfeld.com>
    Cc: Ville Syrjälä <syrjala@sci.fi>
    Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
    Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
    448ac479
pxafb.c 60.3 KB