summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx
diff options
context:
space:
mode:
authorArvind Yadav2017-08-17 15:14:10 +0200
committerHerbert Xu2017-09-22 11:43:03 +0200
commit7fc342d2e672630fdda689a4d3d3b90745c70451 (patch)
tree7db186a7770f1be59d1ff60f6273f31ca72bc9e4 /drivers/crypto/nx
parentcrypto: doc - clarify return values for async hash methods (diff)
downloadkernel-qcow2-linux-7fc342d2e672630fdda689a4d3d3b90745c70451.tar.gz
kernel-qcow2-linux-7fc342d2e672630fdda689a4d3d3b90745c70451.tar.xz
kernel-qcow2-linux-7fc342d2e672630fdda689a4d3d3b90745c70451.zip
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>
Diffstat (limited to 'drivers/crypto/nx')
-rw-r--r--drivers/crypto/nx/nx.c2
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)
vio_unregister_driver(&nx_driver.viodriver);
}
-static struct vio_device_id nx_crypto_driver_ids[] = {
+static const struct vio_device_id nx_crypto_driver_ids[] = {
{ "ibm,sym-encryption-v1", "ibm,sym-encryption" },
{ "", "" }
};