]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fbtft: fb_ssd1331: fix mirrored display
authorJohannes H. Jensen <joh@pseudoberries.com>
Sun, 5 Nov 2017 14:46:53 +0000 (15:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Nov 2017 15:44:05 +0000 (16:44 +0100)
commit5c2406f1eb6e9b3a0a590ef9f56c737a5c7d9701
treeaa43f42e876dbfaf0a1415fca8cde403300311e4
parent9f5f246650f7651ddbc7e38fcced561b224babc9
staging: fbtft: fb_ssd1331: fix mirrored display

When the row scan order is reversed (the default) we also need to
reverse the column scan order. This was not done previously, resulting
in a mirrored display.

Also add support for 180 degree display rotation, in which case simply
disable reversed row and column scan order.

Tested on an Adafruit 0.96" mini Color OLED display.

Signed-off-by: Johannes H. Jensen <joh@pseudoberries.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_ssd1331.c