Commit ba99b6f9 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Herbert Xu

crypto: ccree - make mlli_params.mlli_virt_addr void *

mlli_params.mlli_virt_addr is just a buffer of memory.
This allows to drop a cast.

No change in generated code.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2f272ef3
...@@ -207,7 +207,7 @@ static int cc_generate_mlli(struct device *dev, struct buffer_array *sg_data, ...@@ -207,7 +207,7 @@ static int cc_generate_mlli(struct device *dev, struct buffer_array *sg_data,
goto build_mlli_exit; goto build_mlli_exit;
} }
/* Point to start of MLLI */ /* Point to start of MLLI */
mlli_p = (u32 *)mlli_params->mlli_virt_addr; mlli_p = mlli_params->mlli_virt_addr;
/* go over all SG's and link it to one MLLI table */ /* go over all SG's and link it to one MLLI table */
for (i = 0; i < sg_data->num_of_buffers; i++) { for (i = 0; i < sg_data->num_of_buffers; i++) {
union buffer_array_entry *entry = &sg_data->entry[i]; union buffer_array_entry *entry = &sg_data->entry[i];
......
...@@ -32,7 +32,7 @@ struct cc_mlli { ...@@ -32,7 +32,7 @@ struct cc_mlli {
struct mlli_params { struct mlli_params {
struct dma_pool *curr_pool; struct dma_pool *curr_pool;
u8 *mlli_virt_addr; void *mlli_virt_addr;
dma_addr_t mlli_dma_addr; dma_addr_t mlli_dma_addr;
u32 mlli_len; u32 mlli_len;
}; };
......
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