]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio: magnetometer: st_magn_spi: fix spi_device_id table
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 6 Jun 2017 20:51:24 +0000 (22:51 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:07:40 +0000 (15:07 +0100)
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>
drivers/iio/magnetometer/st_magn_spi.c

index 6325e7dc8e03e2cfce529cbab75e38204a46f61b..f3cb4dc0539144e84a5b61c4f213596aec514ca7 100644 (file)
@@ -48,8 +48,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 },
        { LSM303AGR_MAGN_DEV_NAME },
        {},