lcd: remove unaligned access in lcd_dt_simplefb_configure_node()
authorStephen Warren <swarren@nvidia.com>
Thu, 13 Jun 2013 23:13:11 +0000 (17:13 -0600)
committerAnatolij Gustschin <agust@denx.de>
Mon, 1 Jul 2013 18:11:33 +0000 (20:11 +0200)
commit5af7d0f090b9fe2464d7980841b940846a547716
tree48086351669807c5f8427677c621a7eebb7b88a0
parentb1d8654b41e8cbc4a9c12356ecabad30386a3a7e
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: Stephen Warren <swarren@nvidia.com>
common/lcd.c