Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab7aefd0 authored by David Brownell's avatar David Brownell Committed by Pierre Ossman
Browse files

mmc: constify mmc_host_ops vectors



Now that mmc_host_ops can be constified, update the various drivers
to constify those method tables and shrink the writable data segment.

Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 87598a2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ int at91_mci_get_ro(struct mmc_host *mmc)
	return read_only;
}

static struct mmc_host_ops at91_mci_ops = {
static const struct mmc_host_ops at91_mci_ops = {
	.request	= at91_mci_request,
	.set_ios	= at91_mci_set_ios,
	.get_ro		= at91_mci_get_ro,
+1 −1
Original line number Diff line number Diff line
@@ -875,7 +875,7 @@ static void au1xmmc_init_dma(struct au1xmmc_host *host)
	host->rx_chan = rxchan;
}

struct mmc_host_ops au1xmmc_ops = {
struct const mmc_host_ops au1xmmc_ops = {
	.request	= au1xmmc_request,
	.set_ios	= au1xmmc_set_ios,
};
+1 −1
Original line number Diff line number Diff line
@@ -877,7 +877,7 @@ static void imxmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
	}
}

static struct mmc_host_ops imxmci_ops = {
static const struct mmc_host_ops imxmci_ops = {
	.request	= imxmci_request,
	.set_ios	= imxmci_set_ios,
};
+1 −1
Original line number Diff line number Diff line
@@ -443,7 +443,7 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
	}
}

static struct mmc_host_ops mmci_ops = {
static const struct mmc_host_ops mmci_ops = {
	.request	= mmci_request,
	.set_ios	= mmci_set_ios,
};
+1 −1
Original line number Diff line number Diff line
@@ -960,7 +960,7 @@ static int mmc_omap_get_ro(struct mmc_host *mmc)
	return host->wp_pin && omap_get_gpio_datain(host->wp_pin);
}

static struct mmc_host_ops mmc_omap_ops = {
static const struct mmc_host_ops mmc_omap_ops = {
	.request	= mmc_omap_request,
	.set_ios	= mmc_omap_set_ios,
	.get_ro		= mmc_omap_get_ro,
Loading