iio: pressure: ms5611: remove deprecated compatible strings
authorTomasz Duszynski <tduszyns@gmail.com>
Thu, 16 Aug 2018 18:49:15 +0000 (20:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 16:15:43 +0000 (17:15 +0100)
Compatible strings tend to follow manufacturer,model format.
In case one wants to do a matching with manufacturer stripped
off he can still do so since SPI/I2C core will try id_table
based matching anyway.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/ms5611_i2c.c
drivers/iio/pressure/ms5611_spi.c

index 55fb5fc0b6eac1d9adbf54e2e45382048cb135f5..0469c8ae1134329f4ab38dd4a07c4919c34065ac 100644 (file)
@@ -117,9 +117,7 @@ static int ms5611_i2c_remove(struct i2c_client *client)
 #if defined(CONFIG_OF)
 static const struct of_device_id ms5611_i2c_matches[] = {
        { .compatible = "meas,ms5611" },
-       { .compatible = "ms5611" },
        { .compatible = "meas,ms5607" },
-       { .compatible = "ms5607" },
        { }
 };
 MODULE_DEVICE_TABLE(of, ms5611_i2c_matches);
index 932e05001e1a91fa1a7a211f75491005f197bc93..cd11d022208e6e790a74817b083006098b64bf7c 100644 (file)
@@ -119,9 +119,7 @@ static int ms5611_spi_remove(struct spi_device *spi)
 #if defined(CONFIG_OF)
 static const struct of_device_id ms5611_spi_matches[] = {
        { .compatible = "meas,ms5611" },
-       { .compatible = "ms5611" },
        { .compatible = "meas,ms5607" },
-       { .compatible = "ms5607" },
        { }
 };
 MODULE_DEVICE_TABLE(of, ms5611_spi_matches);