mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scsi: hpsa: make access_method const
@ 2017-08-30 13:53 Bhumika Goyal
  0 siblings, 0 replies; only message in thread
From: Bhumika Goyal @ 2017-08-30 13:53 UTC (permalink / raw)
  To: julia.lawall, don.brace, jejb, martin.petersen, esc.storagedev,
	linux-scsi, linux-kernel
  Cc: Bhumika Goyal

Make these const as they are not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
To compile-test hpsa.h, I test-compiled scsi/hpsa.c which
includes this file.

 drivers/scsi/hpsa.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 018f980..4688b8f 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -628,28 +628,28 @@ static unsigned long SA5_ioaccel_mode1_completed(struct ctlr_info *h, u8 q)
 	.command_completed =	SA5_completed,
 };
 
-static struct access_method SA5_ioaccel_mode1_access = {
+static const struct access_method SA5_ioaccel_mode1_access = {
 	.submit_command =	SA5_submit_command,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_ioaccel_mode1_intr_pending,
 	.command_completed =	SA5_ioaccel_mode1_completed,
 };
 
-static struct access_method SA5_ioaccel_mode2_access = {
+static const struct access_method SA5_ioaccel_mode2_access = {
 	.submit_command =	SA5_submit_command_ioaccel2,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
 	.command_completed =	SA5_performant_completed,
 };
 
-static struct access_method SA5_performant_access = {
+static const struct access_method SA5_performant_access = {
 	.submit_command =	SA5_submit_command,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
 	.command_completed =	SA5_performant_completed,
 };
 
-static struct access_method SA5_performant_access_no_read = {
+static const struct access_method SA5_performant_access_no_read = {
 	.submit_command =	SA5_submit_command_no_read,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-30 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 13:53 [PATCH] scsi: hpsa: make access_method const Bhumika Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®