Merge tag 'fbdev-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
Pull fbdev updates from Tomi Valkeinen: - Miscallaneous small fixes to various fbdev drivers - Remove fb_rotate, which was never used - pmag fb improvements * tag 'fbdev-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (21 commits) xen kconfig: don't "select INPUT_XEN_KBDDEV_FRONTEND" video: fbdev: sis: remove unused variable drivers/video: make fbdev/sunxvr2500.c explicitly non-modular drivers/video: make fbdev/sunxvr1000.c explicitly non-modular drivers/video: make fbdev/sunxvr500.c explicitly non-modular video: exynos: fix modular build fbdev: da8xx-fb: fix videomodes of lcd panels fbdev: kill fb_rotate video: fbdev: bt431: Correct cursor format control macro video: fbdev: pmag-ba-fb: Optimize Bt455 colormap addressing video: fbdev: pmag-ba-fb: Fix and rework Bt455 colormap handling video: fbdev: bt455: Remove unneeded colormap helpers for cursor support video: fbdev: pmag-aa-fb: Report video timings video: fbdev: pmag-aa-fb: Enable building as a module video: fbdev: pmag-aa-fb: Adapt to current APIs video: fbdev: pmag-ba-fb: Fix the lower margin size fbdev: sh_mobile_lcdc: Use ARCH_RENESAS fbdev: n411: check return value fbdev: exynos: fix IS_ERR_VALUE usage video: Use bool instead int pointer for get_opt_bool() argument ...
This commit is contained in:
@@ -594,27 +594,6 @@ static int set_fb_var(struct fb_info *fbi,
|
||||
}
|
||||
|
||||
|
||||
/* Set rotation (0, 90, 180, 270 degree), and switch to the new mode. */
|
||||
static void omapfb_rotate(struct fb_info *fbi, int rotate)
|
||||
{
|
||||
struct omapfb_plane_struct *plane = fbi->par;
|
||||
struct omapfb_device *fbdev = plane->fbdev;
|
||||
|
||||
omapfb_rqueue_lock(fbdev);
|
||||
if (rotate != fbi->var.rotate) {
|
||||
struct fb_var_screeninfo *new_var = &fbdev->new_var;
|
||||
|
||||
memcpy(new_var, &fbi->var, sizeof(*new_var));
|
||||
new_var->rotate = rotate;
|
||||
if (set_fb_var(fbi, new_var) == 0 &&
|
||||
memcmp(new_var, &fbi->var, sizeof(*new_var))) {
|
||||
memcpy(&fbi->var, new_var, sizeof(*new_var));
|
||||
ctrl_change_mode(fbi);
|
||||
}
|
||||
}
|
||||
omapfb_rqueue_unlock(fbdev);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set new x,y offsets in the virtual display for the visible area and switch
|
||||
* to the new mode.
|
||||
@@ -1256,7 +1235,6 @@ static struct fb_ops omapfb_ops = {
|
||||
.fb_ioctl = omapfb_ioctl,
|
||||
.fb_check_var = omapfb_check_var,
|
||||
.fb_set_par = omapfb_set_par,
|
||||
.fb_rotate = omapfb_rotate,
|
||||
.fb_pan_display = omapfb_pan_display,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user