From: Lars-Peter Clausen <lars@metafoo.de>
To: Chris Ball <cjb@laptop.org>
Cc: Anton Vorontsov <avorontsov@ru.mvista.com>,
Viresh Kumar <viresh.linux@gmail.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Mike Rapoport <mike@compulab.co.il>,
Shawn Guo <shawn.guo@linaro.org>,
Albert Herranz <albert_herranz@yahoo.es>,
Kevin Liu <kliu5@marvell.com>,
linux-mmc@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH 2/3] mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct
Date: Tue, 12 Mar 2013 11:52:59 +0100 [thread overview]
Message-ID: <1363085580-3690-2-git-send-email-lars@metafoo.de> (raw)
In-Reply-To: <1363085580-3690-1-git-send-email-lars@metafoo.de>
All users of the sdhci_ops struct in the sdhci core already treat it as const.
The sdhci-pltfm code itself never actually looks at the ops field of the
sdhci_pltfm_data struct and merely passes it on to the sdhci core, so make we
can make it const in the sdhci_pltfm_data struct as well. This allows us to
declare sdhci_ops structs as const in drivers using the sdhci-pltfm helper code.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/mmc/host/sdhci-pltfm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h
index 8a4318e..3a34fe1 100644
--- a/drivers/mmc/host/sdhci-pltfm.h
+++ b/drivers/mmc/host/sdhci-pltfm.h
@@ -16,7 +16,7 @@
#include "sdhci.h"
struct sdhci_pltfm_data {
- struct sdhci_ops *ops;
+ const struct sdhci_ops *ops;
unsigned int quirks;
};
--
1.8.0
next prev parent reply other threads:[~2013-03-12 10:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 10:52 [PATCH 1/3] mmc: sdhci_pltfm: Constify sdhci_pltfm_data Lars-Peter Clausen
2013-03-12 10:52 ` Lars-Peter Clausen [this message]
2013-03-12 10:53 ` [PATCH 3/3] mmc: sdhci: Constify sdhci_ops structs where possible Lars-Peter Clausen
2013-03-12 18:15 ` [PATCH 1/3] mmc: sdhci_pltfm: Constify sdhci_pltfm_data Stephen Warren
-- strict thread matches above, loose matches on Subject: below --
2013-02-14 18:06 Lars-Peter Clausen
2013-02-14 18:06 ` [PATCH 2/3] mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct Lars-Peter Clausen
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=1363085580-3690-2-git-send-email-lars@metafoo.de \
--to=lars@metafoo.de \
--cc=albert_herranz@yahoo.es \
--cc=avorontsov@ru.mvista.com \
--cc=cjb@laptop.org \
--cc=kliu5@marvell.com \
--cc=linux-mmc@vger.kernel.org \
--cc=mike@compulab.co.il \
--cc=shawn.guo@linaro.org \
--cc=swarren@wwwdotorg.org \
--cc=viresh.linux@gmail.com \
/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