lkml.org 
[lkml]   [2018]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for 3.18 087/102] iio: magnetometer: st_magn_spi: fix spi_device_id table
    Date
    From: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>

    [ Upstream commit c83761ff0aac954aa368c623bb0f0d1a3214e834 ]

    Remove LSM303DLHC, LSM303DLM from st_magn_id_table since LSM303DL series
    does not support spi interface

    Fixes: 872e79add756 (iio: magn: Add STMicroelectronics magn driver)
    Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
    Signed-off-by: Jonathan Cameron <jic23@kernel.org>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    ---
    drivers/iio/magnetometer/st_magn_spi.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c
    index a6143ea51dfc..d28685bec34e 100644
    --- a/drivers/iio/magnetometer/st_magn_spi.c
    +++ b/drivers/iio/magnetometer/st_magn_spi.c
    @@ -49,8 +49,6 @@ static int st_magn_spi_remove(struct spi_device *spi)
    }

    static const struct spi_device_id st_magn_id_table[] = {
    - { LSM303DLHC_MAGN_DEV_NAME },
    - { LSM303DLM_MAGN_DEV_NAME },
    { LIS3MDL_MAGN_DEV_NAME },
    {},
    };
    --
    2.14.1
    \
     
     \ /
      Last update: 2018-03-19 17:22    [W:4.250 / U:0.808 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site