video: ssd1307fb: Make use of horizontal addressing mode
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 22 Apr 2013 10:02:25 +0000 (12:02 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 May 2013 11:41:58 +0000 (14:41 +0300)
commit301bc0675b677a98475187050d56cd2b39ff0acf
tree9e2ab6c8938601fbde69a0a80186a0928979a193
parent3394e645a88c722396fc1b03c31a3ffc158744ad
video: ssd1307fb: Make use of horizontal addressing mode

By default, the ssd1307 controller uses an addressing mode called page
addressing. This mode only increments the column cursor in memory when
writing data but will not increments the page cursor when we are at the
end of the page.

However, the controller supports another addressing mode, called
horizontal addressing, that will maintain both the page and column
cursors when writing data to the controller.

That means that we can just remove the code that increments the current
page address and reset the column cursor when reaching the end of the
line, allowing to have a lower data overhead, and a simpler driver.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/ssd1307fb.c