]> asedeno.scripts.mit.edu Git - linux.git/commit
fbcon: Add fbcon_rotate_hint to struct fb_info
authorHans de Goede <j.w.r.degoede@gmail.com>
Sat, 25 Nov 2017 19:35:47 +0000 (20:35 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2017 22:03:21 +0000 (23:03 +0100)
commitc9e6a36492504e35f09c6a53e18ac3f76233365e
tree5d8417e24ec33b9b1807442a6713d2bbf981745c
parent7b47c66cfa203288c43851260edeeb0fae56f692
fbcon: Add fbcon_rotate_hint to struct fb_info

On some hardware the LCD panel is not mounted upright in the casing,
but upside-down or rotated 90 degrees. In this case we want the console
to automatically be rotated to compensate.

The fbdev-driver may know about the need to rotate. Add a new
fbcon_rotate_hint field to struct fb_info, which gets initialized to -1.
If the fbdev-driver knows that some sort of rotation is necessary then
it can set this field to a FB_ROTATE_* value to tell the fbcon console
driver to rotate the console.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171125193553.23986-2-hdegoede@redhat.com
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbsysfs.c
include/linux/fb.h