Commit 03748d4e authored by Mark Brown's avatar Mark Brown Committed by Jonathan Cameron

iio: st_pressure_spi: Add missing entries SPI to device ID table

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: 96c8395e ("spi: Revert modalias changes")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210927134153.12739-1-broonie@kernel.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 37f12202
...@@ -117,6 +117,10 @@ static const struct spi_device_id st_press_id_table[] = { ...@@ -117,6 +117,10 @@ static const struct spi_device_id st_press_id_table[] = {
{ LPS33HW_PRESS_DEV_NAME }, { LPS33HW_PRESS_DEV_NAME },
{ LPS35HW_PRESS_DEV_NAME }, { LPS35HW_PRESS_DEV_NAME },
{ LPS22HH_PRESS_DEV_NAME }, { LPS22HH_PRESS_DEV_NAME },
{ "lps001wp-press" },
{ "lps25h-press", },
{ "lps331ap-press" },
{ "lps22hb-press" },
{}, {},
}; };
MODULE_DEVICE_TABLE(spi, st_press_id_table); MODULE_DEVICE_TABLE(spi, st_press_id_table);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment