]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Input: ariel-pwrbutton - add SPI device ID table
authorMark Brown <broonie@kernel.org>
Sat, 2 Oct 2021 04:20:49 +0000 (21:20 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 2 Oct 2021 04:24:14 +0000 (21:24 -0700)
Currently autoloading for SPI devices does not use the DT ID table, it uses
SPI modalises. Supporting OF modalises is going to be difficult if not
impractical, an attempt was made but has been reverted, so ensure that
module autoloading works for this driver by adding a SPI device ID table.

Fixes: 96c8395e2166 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210927134104.38648-1-broonie@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ariel-pwrbutton.c

index 17bbaac8b80c892692264cc63772f0a5f25879d3..cdc80715b5fd68f7d70f516d0b822785d808126f 100644 (file)
@@ -149,12 +149,19 @@ static const struct of_device_id ariel_pwrbutton_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, ariel_pwrbutton_of_match);
 
+static const struct spi_device_id ariel_pwrbutton_spi_ids[] = {
+       { .name = "wyse-ariel-ec-input" },
+       { }
+};
+MODULE_DEVICE_TABLE(spi, ariel_pwrbutton_spi_ids);
+
 static struct spi_driver ariel_pwrbutton_driver = {
        .driver = {
                .name = "dell-wyse-ariel-ec-input",
                .of_match_table = ariel_pwrbutton_of_match,
        },
        .probe = ariel_pwrbutton_probe,
+       .id_table = ariel_pwrbutton_spi_ids,
 };
 module_spi_driver(ariel_pwrbutton_driver);