crypto: nx-842 - constify vio_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 17 Aug 2017 13:14:11 +0000 (18:44 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:04 +0000 (17:43 +0800)
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>
drivers/crypto/nx/nx-842-pseries.c

index cddc6d8b55d9c63d974c0fdc8341518f70afb527..bf52cd1d7fcafdb37d4a60343980177d37059756 100644 (file)
@@ -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"},
        {"", ""},
 };