Skip to content
Snippets Groups Projects
Commit 5af7d0f0 authored by Stephen Warren's avatar Stephen Warren Committed by Anatolij Gustschin
Browse files

lcd: remove unaligned access in lcd_dt_simplefb_configure_node()


Some ARM compilers may emit code that makes unaligned accesses when
faced with constructs such as:

const char format[] = "r5g6b5";

Make this data static since it doesn't chagne; the compiler will simply
place it into the .rodata section directly, and avoid any unaligned run-
time initialization.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent b1d8654b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment