iio: st_pressure_spi: Add missing entries SPI to device ID table
authorMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 13:41:53 +0000 (14:41 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 7 Oct 2021 15:25:34 +0000 (16:25 +0100)
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 SPI IDs for parts that
only have a compatible listed.

Fixes: 96c8395e2166 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210927134153.12739-1-broonie@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/st_pressure_spi.c

index ee393df54cee8399e1ba4418cf019ed125d8470a..ada2e21852824df8f8252e3f2e6f7acb690d5906 100644 (file)
@@ -117,6 +117,10 @@ static const struct spi_device_id st_press_id_table[] = {
        { LPS33HW_PRESS_DEV_NAME },
        { LPS35HW_PRESS_DEV_NAME },
        { LPS22HH_PRESS_DEV_NAME },
+       { "lps001wp-press" },
+       { "lps25h-press", },
+       { "lps331ap-press" },
+       { "lps22hb-press" },
        {},
 };
 MODULE_DEVICE_TABLE(spi, st_press_id_table);