lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.14 591/849] iio: st_pressure_spi: Add missing entries SPI to device ID table
    Date
    From: Mark Brown <broonie@kernel.org>

    [ Upstream commit 03748d4e003c9f2ad3cd00e3e46f054dcad6b96d ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/iio/pressure/st_pressure_spi.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
    index 8cf8cd3b4554a..51b3467bd724c 100644
    --- a/drivers/iio/pressure/st_pressure_spi.c
    +++ b/drivers/iio/pressure/st_pressure_spi.c
    @@ -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);
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-16 02:40    [W:4.074 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site