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

Commit 6bc09063 authored by Adrian Hunter's avatar Adrian Hunter Committed by Ulf Hansson
Browse files

mmc: sdhci-pci: Let devices define their own sdhci_ops



Let devices define their own sdhci_ops so that device-specific variations
can be implemented without adding quirks.

Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 606d3131
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1648,7 +1648,9 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot(
	}

	host->hw_name = "PCI";
	host->ops = &sdhci_pci_ops;
	host->ops = chip->fixes && chip->fixes->ops ?
		    chip->fixes->ops :
		    &sdhci_pci_ops;
	host->quirks = chip->quirks;
	host->quirks2 = chip->quirks2;

+2 −0
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ struct sdhci_pci_fixes {

	int			(*suspend) (struct sdhci_pci_chip *);
	int			(*resume) (struct sdhci_pci_chip *);

	const struct sdhci_ops	*ops;
};

struct sdhci_pci_slot {