summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-17 15:14:11 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 11:43:04 +0200
commitf096ced9e9d8cabdf9c61b5eef7188775c1daf05 (patch)
tree0cb7497557ab8fe7f8de26f72ac946143c54e497 /drivers/crypto/nx
parentcrypto: nx - constify vio_device_id (diff)
downloadlinux-f096ced9e9d8cabdf9c61b5eef7188775c1daf05.tar.xz
linux-f096ced9e9d8cabdf9c61b5eef7188775c1daf05.zip
crypto: nx-842 - 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-842-pseries.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c
index cddc6d8b55d9..bf52cd1d7fca 100644
--- a/drivers/crypto/nx/nx-842-pseries.c
+++ b/drivers/crypto/nx/nx-842-pseries.c
@@ -1082,7 +1082,7 @@ static int nx842_remove(struct vio_dev *viodev)
return 0;
}
-static struct vio_device_id nx842_vio_driver_ids[] = {
+static const struct vio_device_id nx842_vio_driver_ids[] = {
{"ibm,compression-v1", "ibm,compression"},
{"", ""},
};