diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 09:14:10 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-22 05:43:03 -0400 |
commit | 7fc342d2e672630fdda689a4d3d3b90745c70451 (patch) | |
tree | 7db186a7770f1be59d1ff60f6273f31ca72bc9e4 | |
parent | 560b1a82ee87288c18aca31ee3053272c3737fe5 (diff) |
crypto: nx - constify vio_device_id
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by <asm/vio.h> work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/nx/nx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/nx/nx.c b/drivers/crypto/nx/nx.c index 036057abb257..3a5e31be4764 100644 --- a/drivers/crypto/nx/nx.c +++ b/drivers/crypto/nx/nx.c | |||
@@ -833,7 +833,7 @@ static void __exit nx_fini(void) | |||
833 | vio_unregister_driver(&nx_driver.viodriver); | 833 | vio_unregister_driver(&nx_driver.viodriver); |
834 | } | 834 | } |
835 | 835 | ||
836 | static struct vio_device_id nx_crypto_driver_ids[] = { | 836 | static const struct vio_device_id nx_crypto_driver_ids[] = { |
837 | { "ibm,sym-encryption-v1", "ibm,sym-encryption" }, | 837 | { "ibm,sym-encryption-v1", "ibm,sym-encryption" }, |
838 | { "", "" } | 838 | { "", "" } |
839 | }; | 839 | }; |