summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-07-27 16:47:27 +0300
committerSam Ravnborg <sam@ravnborg.org>2021-07-27 18:18:18 +0300
commitef9d793825b56ec4289d2b848c9318352fa2cd13 (patch)
tree69e488ed8aa05a0d322eecb23e1a18cbf7289a99 /tools/perf/scripts/python/export-to-sqlite.py
parent7b4b3733fd68d986c3f790e47aa6116d229e949e (diff)
downloadlinux-ef9d793825b56ec4289d2b848c9318352fa2cd13.tar.xz
video: fbdev: ssd1307fb: Simplify ssd1307fb_update_display()
Simplify the nested loops to handle conversion from linear frame buffer to ssd1307 page layout: 1. Move last page handling one level up, as the value of "m" is the same inside a page, 2. array->data[] is filled linearly, so there is no need to recalculate array_idx over and over again; a simple increment is sufficient. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210727134730.3765898-3-geert@linux-m68k.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions