Skip to content

Commit a92a73b

Browse files
jwrdegoedestorulf
authored andcommitted
mmc: sdhci-acpi: Sort DMI quirks alphabetically
Sort the DMI quirks alphabetically. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Acked-by: Adrian Hunter <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent b385566 commit a92a73b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

drivers/mmc/host/sdhci-acpi.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,20 @@ static const struct acpi_device_id sdhci_acpi_ids[] = {
719719
};
720720
MODULE_DEVICE_TABLE(acpi, sdhci_acpi_ids);
721721

722+
/* Please keep this list sorted alphabetically */
722723
static const struct dmi_system_id sdhci_acpi_quirks[] = {
724+
{
725+
/*
726+
* The Acer Aspire Switch 10 (SW5-012) microSD slot always
727+
* reports the card being write-protected even though microSD
728+
* cards do not have a write-protect switch at all.
729+
*/
730+
.matches = {
731+
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
732+
DMI_MATCH(DMI_PRODUCT_NAME, "Aspire SW5-012"),
733+
},
734+
.driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT,
735+
},
723736
{
724737
/*
725738
* The Lenovo Miix 320-10ICR has a bug in the _PS0 method of
@@ -734,18 +747,6 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = {
734747
},
735748
.driver_data = (void *)DMI_QUIRK_RESET_SD_SIGNAL_VOLT_ON_SUSP,
736749
},
737-
{
738-
/*
739-
* The Acer Aspire Switch 10 (SW5-012) microSD slot always
740-
* reports the card being write-protected even though microSD
741-
* cards do not have a write-protect switch at all.
742-
*/
743-
.matches = {
744-
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
745-
DMI_MATCH(DMI_PRODUCT_NAME, "Aspire SW5-012"),
746-
},
747-
.driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT,
748-
},
749750
{
750751
/*
751752
* The Toshiba WT8-B's microSD slot always reports the card being

0 commit comments

Comments
 (0)