Commit 5318c53d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Herbert Xu

crypto: s5p-sss - Use consistent indentation for variables and members

Bring some consistency by:
1. Replacing fixed-space indentation of structure members with just
   tabs.
2. Remove indentation in declaration of local variable between type and
   name.  Driver was mixing usage of such indentation and lack of it.
   When removing indentation, reorder variables in
   reversed-christmas-tree order with first variables being initialized
   ones.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4f8de65b
...@@ -422,10 +422,10 @@ static irqreturn_t s5p_aes_interrupt(int irq, void *dev_id) ...@@ -422,10 +422,10 @@ static irqreturn_t s5p_aes_interrupt(int irq, void *dev_id)
{ {
struct platform_device *pdev = dev_id; struct platform_device *pdev = dev_id;
struct s5p_aes_dev *dev = platform_get_drvdata(pdev); struct s5p_aes_dev *dev = platform_get_drvdata(pdev);
uint32_t status;
unsigned long flags;
bool set_dma_tx = false; bool set_dma_tx = false;
bool set_dma_rx = false; bool set_dma_rx = false;
unsigned long flags;
uint32_t status;
spin_lock_irqsave(&dev->lock, flags); spin_lock_irqsave(&dev->lock, flags);
...@@ -540,8 +540,8 @@ static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode) ...@@ -540,8 +540,8 @@ static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode)
{ {
struct ablkcipher_request *req = dev->req; struct ablkcipher_request *req = dev->req;
uint32_t aes_control; uint32_t aes_control;
int err;
unsigned long flags; unsigned long flags;
int err;
aes_control = SSS_AES_KEY_CHANGE_MODE; aes_control = SSS_AES_KEY_CHANGE_MODE;
if (mode & FLAGS_AES_DECRYPT) if (mode & FLAGS_AES_DECRYPT)
...@@ -654,8 +654,8 @@ static int s5p_aes_handle_req(struct s5p_aes_dev *dev, ...@@ -654,8 +654,8 @@ static int s5p_aes_handle_req(struct s5p_aes_dev *dev,
static int s5p_aes_crypt(struct ablkcipher_request *req, unsigned long mode) static int s5p_aes_crypt(struct ablkcipher_request *req, unsigned long mode)
{ {
struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req);
struct s5p_aes_ctx *ctx = crypto_ablkcipher_ctx(tfm);
struct s5p_aes_reqctx *reqctx = ablkcipher_request_ctx(req); struct s5p_aes_reqctx *reqctx = ablkcipher_request_ctx(req);
struct s5p_aes_ctx *ctx = crypto_ablkcipher_ctx(tfm);
struct s5p_aes_dev *dev = ctx->dev; struct s5p_aes_dev *dev = ctx->dev;
if (!IS_ALIGNED(req->nbytes, AES_BLOCK_SIZE)) { if (!IS_ALIGNED(req->nbytes, AES_BLOCK_SIZE)) {
...@@ -763,11 +763,11 @@ static struct crypto_alg algs[] = { ...@@ -763,11 +763,11 @@ static struct crypto_alg algs[] = {
static int s5p_aes_probe(struct platform_device *pdev) static int s5p_aes_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev;
int i, j, err = -ENODEV; int i, j, err = -ENODEV;
struct samsung_aes_variant *variant;
struct s5p_aes_dev *pdata; struct s5p_aes_dev *pdata;
struct device *dev = &pdev->dev;
struct resource *res; struct resource *res;
struct samsung_aes_variant *variant;
if (s5p_dev) if (s5p_dev)
return -EEXIST; return -EEXIST;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment