From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, b.zolnierkie@samsung.com, tj@kernel.org,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] ata: make ata_port_operations const
Date: Mon, 7 Aug 2017 16:02:02 +0530 [thread overview]
Message-ID: <1502101922-13313-1-git-send-email-bhumirks@gmail.com> (raw)
Make ata_port_operations structures const as it is only stored in the
inherits field of an ata_port_operations structure. Therefore make it
const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/ata/pata_sis.c | 2 +-
drivers/ata/sata_via.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c
index 626f989..24614d2 100644
--- a/drivers/ata/pata_sis.c
+++ b/drivers/ata/pata_sis.c
@@ -549,7 +549,7 @@ static unsigned long sis_133_mode_filter(struct ata_device *adev, unsigned long
.cable_detect = sis_133_cable_detect,
};
-static struct ata_port_operations sis_base_ops = {
+static const struct ata_port_operations sis_base_ops = {
.inherits = &ata_bmdma_port_ops,
.prereset = sis_pre_reset,
};
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c
index 93b8d78..83ba848 100644
--- a/drivers/ata/sata_via.c
+++ b/drivers/ata/sata_via.c
@@ -129,7 +129,7 @@ struct svia_priv {
ATA_BMDMA_SHT(DRV_NAME),
};
-static struct ata_port_operations svia_base_ops = {
+static const struct ata_port_operations svia_base_ops = {
.inherits = &ata_bmdma_port_ops,
.sff_tf_load = svia_tf_load,
};
--
1.9.1
next reply other threads:[~2017-08-07 10:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 10:32 Bhumika Goyal [this message]
2017-08-07 15:07 ` [PATCH] ata: make ata_port_operations const Tejun Heo
2017-08-07 15:24 ` Bhumika Goyal
2017-08-07 16:29 ` Tejun Heo
2017-08-07 16:34 ` Joe Perches
2017-08-08 8:11 ` Bhumika Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502101922-13313-1-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=b.zolnierkie@samsung.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox