aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-14 11:06:59 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-11-17 22:00:41 +0800
commit202a32f0463ebc58833cc3e75c069996437ba526 (patch)
tree24df3b49067c06304301418ea81995856aa453cb /drivers
parentcrypto: rsa - only require output buffers as big as needed. (diff)
downloadlinux-dev-202a32f0463ebc58833cc3e75c069996437ba526.tar.xz
linux-dev-202a32f0463ebc58833cc3e75c069996437ba526.zip
crypto: qat - constify pci_error_handlers structures
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/qat/qat_common/adf_aer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c
index 0a5ca0ba5d64..d24cfd433e63 100644
--- a/drivers/crypto/qat/qat_common/adf_aer.c
+++ b/drivers/crypto/qat/qat_common/adf_aer.c
@@ -197,7 +197,7 @@ static void adf_resume(struct pci_dev *pdev)
dev_info(&pdev->dev, "Device is up and runnig\n");
}
-static struct pci_error_handlers adf_err_handler = {
+static const struct pci_error_handlers adf_err_handler = {
.error_detected = adf_error_detected,
.slot_reset = adf_slot_reset,
.resume = adf_resume,