crypto: nx - add LE support to pSeries platform driver
authorDan Streetman <ddstreet@ieee.org>
Thu, 18 Jun 2015 16:05:30 +0000 (12:05 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Jun 2015 06:49:18 +0000 (14:49 +0800)
commitc47d63020c03659e584673f78f24f2e5de3e6b9b
tree819736bc1e06a911c4ee9da39efb33625c27b921
parent7793bda8fe372fe2e71f16d0619b630d6e41c8ba
crypto: nx - add LE support to pSeries platform driver

Add support to the nx-842-pseries.c driver for running in little endian
mode.

The pSeries platform NX 842 driver currently only works as big endian.
This adds cpu_to_be*() and be*_to_cpu() in the appropriate places to
work in LE mode also.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/Kconfig
drivers/crypto/nx/nx-842-pseries.c
drivers/crypto/nx/nx-842.h