mfd: si476x: Use get_unaligned_be16() for unaligned be16 loads
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 9 May 2013 12:01:05 +0000 (14:01 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 16 May 2013 17:15:07 +0000 (19:15 +0200)
commit151978bf671dd2f741eab79c91d7d74bad49929c
tree5cdee5f5b224a4d950e7ac86a9ed92bf7a69fd4f
parentc34924b9503ca73ae36573d6ce08a34677c05081
mfd: si476x: Use get_unaligned_be16() for unaligned be16 loads

Loading be16 values from byte buffers may cause unaligned accesses, so use
get_unaligned_be16() to avoid problems on architectures that do not support
these.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/si476x-cmd.c