diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2015-10-14 15:14:19 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-15 09:05:18 -0400 |
commit | cac367bfc134174506a57a44834e3a608acc2f9b (patch) | |
tree | 2e0f226f036e6a504e48db3aeff0bb084f22bd3b /drivers/crypto/sahara.c | |
parent | 19b14e7e224f1c119a1756fde02ccacefd280212 (diff) |
crypto: sahara - set array of const as const
Some array of const char are not set as const.
This patch fix that.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/sahara.c')
-rw-r--r-- | drivers/crypto/sahara.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 804c0f5ce63a..f68c24a98277 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c | |||
@@ -272,7 +272,7 @@ static u32 sahara_aes_data_link_hdr(struct sahara_dev *dev) | |||
272 | SAHARA_HDR_CHA_SKHA | SAHARA_HDR_PARITY_BIT; | 272 | SAHARA_HDR_CHA_SKHA | SAHARA_HDR_PARITY_BIT; |
273 | } | 273 | } |
274 | 274 | ||
275 | static char *sahara_err_src[16] = { | 275 | static const char *sahara_err_src[16] = { |
276 | "No error", | 276 | "No error", |
277 | "Header error", | 277 | "Header error", |
278 | "Descriptor length error", | 278 | "Descriptor length error", |
@@ -291,14 +291,14 @@ static char *sahara_err_src[16] = { | |||
291 | "DMA error" | 291 | "DMA error" |
292 | }; | 292 | }; |
293 | 293 | ||
294 | static char *sahara_err_dmasize[4] = { | 294 | static const char *sahara_err_dmasize[4] = { |
295 | "Byte transfer", | 295 | "Byte transfer", |
296 | "Half-word transfer", | 296 | "Half-word transfer", |
297 | "Word transfer", | 297 | "Word transfer", |
298 | "Reserved" | 298 | "Reserved" |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static char *sahara_err_dmasrc[8] = { | 301 | static const char *sahara_err_dmasrc[8] = { |
302 | "No error", | 302 | "No error", |
303 | "AHB bus error", | 303 | "AHB bus error", |
304 | "Internal IP bus error", | 304 | "Internal IP bus error", |
@@ -309,7 +309,7 @@ static char *sahara_err_dmasrc[8] = { | |||
309 | "DMA HW error" | 309 | "DMA HW error" |
310 | }; | 310 | }; |
311 | 311 | ||
312 | static char *sahara_cha_errsrc[12] = { | 312 | static const char *sahara_cha_errsrc[12] = { |
313 | "Input buffer non-empty", | 313 | "Input buffer non-empty", |
314 | "Illegal address", | 314 | "Illegal address", |
315 | "Illegal mode", | 315 | "Illegal mode", |
@@ -324,7 +324,7 @@ static char *sahara_cha_errsrc[12] = { | |||
324 | "Reserved" | 324 | "Reserved" |
325 | }; | 325 | }; |
326 | 326 | ||
327 | static char *sahara_cha_err[4] = { "No error", "SKHA", "MDHA", "RNG" }; | 327 | static const char *sahara_cha_err[4] = { "No error", "SKHA", "MDHA", "RNG" }; |
328 | 328 | ||
329 | static void sahara_decode_error(struct sahara_dev *dev, unsigned int error) | 329 | static void sahara_decode_error(struct sahara_dev *dev, unsigned int error) |
330 | { | 330 | { |
@@ -354,7 +354,7 @@ static void sahara_decode_error(struct sahara_dev *dev, unsigned int error) | |||
354 | dev_err(dev->device, "\n"); | 354 | dev_err(dev->device, "\n"); |
355 | } | 355 | } |
356 | 356 | ||
357 | static char *sahara_state[4] = { "Idle", "Busy", "Error", "HW Fault" }; | 357 | static const char *sahara_state[4] = { "Idle", "Busy", "Error", "HW Fault" }; |
358 | 358 | ||
359 | static void sahara_decode_status(struct sahara_dev *dev, unsigned int status) | 359 | static void sahara_decode_status(struct sahara_dev *dev, unsigned int status) |
360 | { | 360 | { |