summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-06-06 22:51:24 +0200
committerJonathan Cameron <jic23@kernel.org>2017-06-11 16:07:40 +0200
commitc83761ff0aac954aa368c623bb0f0d1a3214e834 (patch)
treebc69fb044d97eec1ec6c02b6f3da679ac26c5754 /drivers
parentiio: accel: st_accel_spi: fix spi_device_id table (diff)
downloadlinux-c83761ff0aac954aa368c623bb0f0d1a3214e834.tar.xz
linux-c83761ff0aac954aa368c623bb0f0d1a3214e834.zip
iio: magnetometer: st_magn_spi: fix spi_device_id table
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/magnetometer/st_magn_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c
index 6325e7dc8e03..f3cb4dc05391 100644
--- a/drivers/iio/magnetometer/st_magn_spi.c
+++ b/drivers/iio/magnetometer/st_magn_spi.c
@@ -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 },
{},