fbdev: kill fb_rotate
The fb_rotate method in struct fb_ops is never actually invoked, and
it's been that way in the entire history of git (in fact, the last
occurrence of the string '->fb_rotate' vanished over 10 years ago,
with b4d8aea6d6, and that merely tested whether the callback
existed). So remove some dead code and make struct fb_obs a little
smaller.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
committed by
Tomi Valkeinen
parent
e29f0d55e2
commit
2f9ba65d9d
@@ -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